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.
↧