fireball/lib/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl

5 lines
134 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
gl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif