mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 20:44:00 -06:00
14 lines
276 B
GLSL
14 lines
276 B
GLSL
#version 120
|
|
|
|
uniform float zoom;
|
|
// x = min, y = max
|
|
uniform vec2 point_sizes;
|
|
|
|
varying vec3 eye_center;
|
|
|
|
void main()
|
|
{
|
|
gl_PointSize = clamp(zoom, point_sizes.x, point_sizes.y);
|
|
eye_center = (gl_ModelViewMatrix * gl_Vertex).xyz;
|
|
gl_Position = ftransform();
|
|
}
|