fix inverted Z clip plane

This commit is contained in:
James Seibel
2026-05-16 14:06:10 -05:00
parent e07557e6e3
commit c1644ad419
@@ -99,11 +99,11 @@ public class RenderUtil
// Set new far and near clip plane values. // Set new far and near clip plane values.
if (RENDER_API_DEF.getRenderDepth() == EDhRenderDepth.FORWARD_Z) if (RENDER_API_DEF.getRenderDepth() == EDhRenderDepth.FORWARD_Z)
{ {
lodProj.setClipPlanes(nearClipDist, farClipDist, true); lodProj.setClipPlanes(nearClipDist, farClipDist, false);
} }
else else
{ {
lodProj.setClipPlanes(farClipDist, nearClipDist, false); lodProj.setClipPlanes(farClipDist, nearClipDist, true);
} }
return lodProj; return lodProj;