13 lines
199 B
GLSL
13 lines
199 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(location = 0) out vec4 color;
|
||
|
layout(location = 0) flat in vec4 color_in;
|
||
|
|
||
|
void main() {
|
||
|
if (length(gl_PointCoord - vec2(0.5)) > 0.5) {
|
||
|
discard;
|
||
|
}
|
||
|
|
||
|
color = color_in;
|
||
|
}
|