fireball/lib/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl
2018-12-25 17:29:22 +03:30

5 lines
134 B
GLSL

#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
gl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif