mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 12:41:18 -07:00
Renamed shaders
This commit is contained in:
parent
e4f767b2ed
commit
ac8a6fccbe
7 changed files with 15 additions and 16 deletions
11
resources/shaders/options_120.vs
Normal file
11
resources/shaders/options_120.vs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 120
|
||||
|
||||
uniform float zoom;
|
||||
uniform float point_size;
|
||||
uniform float near_plane_height;
|
||||
|
||||
void main()
|
||||
{
|
||||
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