mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-07 21:15:28 +03:00
13a96c5aba
These are not natively supported by Vulkan, so use a helper shader and colorWriteMask for the same behaviour.
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;
|
|
}
|