This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/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;
}