16 lines
235 B
Plaintext
16 lines
235 B
Plaintext
|
#ifdef USE_LOGDEPTHBUF
|
||
|
|
||
|
#ifdef USE_LOGDEPTHBUF_EXT
|
||
|
|
||
|
vFragDepth = 1.0 + gl_Position.w;
|
||
|
|
||
|
#else
|
||
|
|
||
|
gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;
|
||
|
|
||
|
gl_Position.z *= gl_Position.w;
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif
|