skyline/app/src/main/shaders/clear.frag

18 lines
268 B
GLSL
Raw Normal View History

#version 460
layout (location = 0) out vec4 colour;
layout (push_constant) uniform constants {
vec4 colour;
bool clearDepth;
float depth;
} PC;
void main()
{
if (PC.clearDepth)
gl_FragDepth = PC.depth;
else
colour = PC.colour;
}