Shadow map depth range seems off

Started by
9 comments, last by MJP 8 years, 2 months ago
You don't want to reverse the viewport min and max depth, you can leave those alone. Those values are a clamp applied to your z/w value after rasterization, so you still want to leave them as 0 and 1 respectively.

You also need to make sure that you flip your depth test comparison function when rendering to your shadow map (use GREATER instead of LESS).

This topic is closed to new replies.

Advertisement