mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
14 lines
246 B
GLSL
14 lines
246 B
GLSL
#version 330
|
|
|
|
#include <common>
|
|
|
|
void main()
|
|
{
|
|
float x = (gl_PointCoord.x - 0.5f) * 2.0f;
|
|
float y = (gl_PointCoord.y - 0.5f) * 2.0f;
|
|
float dist2 = abs(x * x + y * y);
|
|
if (dist2 > 0.5f * 0.5f)
|
|
discard;
|
|
gl_FragColor = param[0] * emission;
|
|
}
|