mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-08 18:45:29 +03:00
18 lines
268 B
GLSL
18 lines
268 B
GLSL
|
#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;
|
||
|
}
|