14 lines
172 B
Plaintext
14 lines
172 B
Plaintext
|
#version 330 core
|
||
|
in vec4 fcolor;
|
||
|
|
||
|
out vec4 color;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
float d = length(gl_PointCoord - vec2(0.5,0.5));
|
||
|
if (d >= 0.47)
|
||
|
discard;
|
||
|
|
||
|
color = fcolor;
|
||
|
}
|