diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl b/source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl new file mode 100644 index 00000000000..60e71e19004 --- /dev/null +++ b/source/blender/gpu/shaders/gpu_shader_depth_only_frag.glsl @@ -0,0 +1,6 @@ + +void main() +{ + // no color output, only depth (line below is implicit) + // gl_FragDepth = gl_FragCoord.z; +} |