skyline/app/src/main/shaders/clear.vert
Billy Laws 13a96c5aba Implement a helper shader for partial clears
These are not natively supported by Vulkan, so use a helper shader and colorWriteMask for the same behaviour.
2022-11-19 12:49:05 +00:00

15 lines
244 B
GLSL

#version 460
void main() {
const vec2 lut[6] = vec2[6](
vec2(-1, -1),
vec2(-1, 1),
vec2(1, 1),
vec2(1, 1),
vec2(1, -1),
vec2(-1, -1)
);
gl_Position = vec4(lut[gl_VertexIndex], 0, 1);
}