ptk/shaders/shader.frag.glsl
2024-08-08 14:38:43 +02:00

12 lines
244 B
GLSL

#version 450
layout(location = 0) out vec4 outColor;
layout(location = 0) in vec3 fragColor;
layout(location = 1) in vec2 position;
void main() {
if (length(position) > 0.5) {
discard;
}
outColor = vec4(fragColor, 1.0);
}