mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
VertexShaderManager: Use a more accurate depth range.
This fixes the gxtest_depth hwtest.
This commit is contained in:
parent
c223bd47b9
commit
92aa7669b5
@ -388,8 +388,8 @@ void VertexShaderManager::SetConstants()
|
|||||||
constants.pixelcentercorrection[1] = pixel_center_correction * pixel_size_y;
|
constants.pixelcentercorrection[1] = pixel_center_correction * pixel_size_y;
|
||||||
|
|
||||||
// The depth range is handled in the vertex shader.
|
// The depth range is handled in the vertex shader.
|
||||||
constants.pixelcentercorrection[2] = (xfmem.viewport.zRange) / 16777216.0f;
|
constants.pixelcentercorrection[2] = xfmem.viewport.zRange / 16777215.0f;
|
||||||
constants.pixelcentercorrection[3] = (xfmem.viewport.farZ) / 16777216.0f;
|
constants.pixelcentercorrection[3] = xfmem.viewport.farZ / 16777215.0f;
|
||||||
|
|
||||||
dirty = true;
|
dirty = true;
|
||||||
// This is so implementation-dependent that we can't have it here.
|
// This is so implementation-dependent that we can't have it here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user