#version 460 layout(location = 0) out vec4 FragColor; uniform vec4 color; in float depth; void main(){ if(depth > 1 || depth < 0) discard; FragColor = color; }