Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Reverse Depth Buffer

$
0
0
After reading loads about depth buffer precision (kindly linked/discussed by some people on here) I can't seem to find an actual example of how to do it. In my model shader I currently just write out z/w. Is it as simple as writing out 1 - z/w? That almost seems too simple.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>