GCodeViewer -> New shaders for options

This commit is contained in:
enricoturri1966 2020-05-22 13:21:43 +02:00
parent 80c2f107c1
commit 4d05ec0856
18 changed files with 132 additions and 408 deletions

View file

@ -0,0 +1,11 @@
#version 120
uniform float zoom;
// x = min, y = max
uniform vec2 point_sizes;
void main()
{
gl_PointSize = clamp(zoom, point_sizes.x, point_sizes.y);
gl_Position = ftransform();
}