Saxum/Shader/depth.fsh
2015-02-10 00:27:13 +01:00

8 lines
90 B
GLSL

#version 150
out float gl_FragDepth;
void main() {
gl_FragDepth = gl_FragCoord.z;
}