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

11 lines
142 B
GLSL
Raw Normal View History

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