Files
test/source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl
Mike Erwin 1b5b899228 OpenGL: add built-in GPU_SHADER_3D_DEPTH_ONLY
We’re discussing several techniques that require a depth pre-pass.
2016-09-13 02:51:38 -04:00

7 lines
109 B
GLSL

void main()
{
// no color output, only depth (line below is implicit)
// gl_FragDepth = gl_FragCoord.z;
}