mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoBackends: Use vertex shader depth range if ztexture is used.
This commit is contained in:
@ -576,8 +576,7 @@ void Renderer::SetViewport()
|
||||
|
||||
// If an inverted or oversized depth range is used, we need to calculate the depth range in the
|
||||
// vertex shader.
|
||||
if (xfmem.viewport.zRange < 0.0f || fabs(xfmem.viewport.zRange) > 16777215.0f ||
|
||||
fabs(xfmem.viewport.farZ) > 16777215.0f)
|
||||
if (UseVertexDepthRange())
|
||||
{
|
||||
// We need to ensure depth values are clamped the maximum value supported by the console GPU.
|
||||
min_depth = 0.0f;
|
||||
|
Reference in New Issue
Block a user