mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-01 09:32:50 +00:00
GCodeViewer -> New shaders for options
This commit is contained in:
11
resources/shaders/options_110.vs
Normal file
11
resources/shaders/options_110.vs
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 110
|
||||
|
||||
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