hanyangl5 / horizon

precompute atmospheric scattering
MIT License
7 stars 1 forks source link

reverse-z #50

Closed hanyangl5 closed 2 years ago

hanyangl5 commented 2 years ago

prevent depth fighting https://nlguillemot.wordpress.com/2016/12/07/reversed-z-in-opengl/ https://www.danielecarbone.com/reverse-depth-buffer-in-opengl/#:~:text=Reverse%20z%3A%20Why%20and%20How%20The%20main%20idea,loss%20of%20precision%20from%20the%20non%20linear%20z. https://developer.nvidia.com/content/depth-precision-visualized

hanyangl5 commented 2 years ago

done in https://github.com/v4vendeta/horizon/commit/b1d9e67b43bcffed21f71f043c5e3cfd0aed9be8