mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 04:31:17 -07:00
ENABLE_GCODE_VIEWER -> Refactoring of shaders for options
This commit is contained in:
parent
e9d57c932a
commit
dcec684cc7
8 changed files with 67 additions and 72 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#version 120
|
||||
|
||||
uniform float zoom;
|
||||
// x = min, y = max
|
||||
uniform vec2 point_sizes;
|
||||
uniform float point_size;
|
||||
uniform float near_plane_height;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_PointSize = clamp(zoom, point_sizes.x, point_sizes.y);
|
||||
gl_Position = ftransform();
|
||||
gl_Position = ftransform();
|
||||
gl_PointSize = (gl_Position.w == 1.0) ? zoom * near_plane_height * point_size : near_plane_height * point_size / gl_Position.w;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue