mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 14:28:40 +00:00
9 lines
208 B
GLSL
9 lines
208 B
GLSL
#version 450
|
|
|
|
layout(location = 0) flat in int tag;
|
|
layout(location = 0) out vec4 color;
|
|
void main() {
|
|
gl_SampleMask[0] = 1 << (tag % 4);
|
|
color = vec4(floor(gl_FragCoord.xy), tag + 1, 255) / 255.0;
|
|
}
|