Merge pull request #12208 from PatrickFerry/add-vertex-depth-range-case
Use Vertex Depth Range when zRange Exceeds farZ
This commit is contained in:
commit
b191c0f7d8
|
@ -148,8 +148,14 @@ bool VertexShaderManager::UseVertexDepthRange()
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// If an inverted depth range is unsupported, we also need to check if the range is inverted.
|
// If an inverted depth range is unsupported, we also need to check if the range is inverted.
|
||||||
if (!g_ActiveConfig.backend_info.bSupportsReversedDepthRange && xfmem.viewport.zRange < 0.0f)
|
if (!g_ActiveConfig.backend_info.bSupportsReversedDepthRange)
|
||||||
return true;
|
{
|
||||||
|
if (xfmem.viewport.zRange < 0.0f)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (xfmem.viewport.zRange > xfmem.viewport.farZ)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// If an oversized depth range or a ztexture is used, we need to calculate the depth range
|
// If an oversized depth range or a ztexture is used, we need to calculate the depth range
|
||||||
// in the vertex shader.
|
// in the vertex shader.
|
||||||
|
|
Loading…
Reference in New Issue