Skip to content

Commit

Permalink
[d3d9] Update text re. viewport bias
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Apr 29, 2019
1 parent a228568 commit 860e214
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3650,8 +3650,9 @@ namespace dxvk {
cf = 0.5f;

// HACK: UE3 bug re. tonemapper + shadow sampling being red:-
// We need to bias this if the render targets are powers of two
// in order to make imprecision biased towards infinity.
// We need to bias this if the render targets except when
// they are powers of two in order to make
// imprecision biased towards infinity.
if ((vp.Width & (vp.Width - 1)) == 0
&& (vp.Height & (vp.Height - 1)) == 0)
cf -= 1.0f / 128.0f;
Expand Down

0 comments on commit 860e214

Please sign in to comment.