ENABLE_GCODE_VIEWER -> Refactoring of shaders for options

This commit is contained in:
enricoturri1966 2020-05-29 12:29:04 +02:00
parent e9d57c932a
commit dcec684cc7
8 changed files with 67 additions and 72 deletions

View file

@ -79,7 +79,7 @@ float fragment_depth(vec3 eye_pos)
void main()
{
vec2 pos = gl_PointCoord - vec2(0.5, 0.5);
vec2 pos = gl_PointCoord - vec2(0.5);
float sq_radius = dot(pos, pos);
if (sq_radius > 0.25)
discard;