timi-liuliang / echo

A New Cross-Platform 2D 3D Game Engine
MIT License
936 stars 107 forks source link

Shadow depth use linear depth #1213

Closed timi-liuliang closed 1 year ago

timi-liuliang commented 1 year ago

https://stackoverflow.com/questions/51108596/linearize-depth

gl_FragCoord.z to linear https://stackoverflow.com/questions/7777913/how-to-render-depth-linearly-in-modern-opengl-with-gl-fragcoord-z-in-fragment-sh