1
0
Fork 0
fgdata/Compositor/Shaders/ALS/terrain-writedepth.vert

10 lines
142 B
GLSL

#version 120
varying float flogz;
void main()
{
gl_Position = ftransform();
// logarithmic depth
flogz = 1.0 + gl_Position.w;
}