mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-02 10:02:48 +00:00
GCodeViewer -> Newer version of shader for options
This commit is contained in:
11
resources/shaders/options_120_flat.vs
Normal file
11
resources/shaders/options_120_flat.vs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user