mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 15:51:45 +00:00
15 lines
228 B
GLSL
15 lines
228 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(location = 0) in vec4 color;
|
||
|
|
||
|
layout(location = 0) out vec4 fragmentColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec2 cxy = 2.0 * gl_PointCoord - 1.0;
|
||
|
if(dot(cxy, cxy) > 1.0)
|
||
|
discard;
|
||
|
|
||
|
fragmentColor = color;
|
||
|
}
|