1 2 3 4 5 6 7 8
#version 450 core layout (location = 0) in vec4 clear_colour; void main() { gl_FragDepth = clear_colour.x; }