mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Added class GCodeViewer -> basic render of gcode toolpaths using dedicated shaders
This commit is contained in:
parent
4df141815b
commit
c3eb65c461
18 changed files with 652 additions and 13 deletions
15
resources/shaders/toolchanges.vs
Normal file
15
resources/shaders/toolchanges.vs
Normal file
|
@ -0,0 +1,15 @@
|
|||
#version 110
|
||||
|
||||
varying vec3 eye_position;
|
||||
varying vec3 eye_normal;
|
||||
//// world z component of the normal used to darken the lower side of the toolpaths
|
||||
//varying float world_normal_z;
|
||||
|
||||
void main()
|
||||
{
|
||||
eye_position = (gl_ModelViewMatrix * gl_Vertex).xyz;
|
||||
eye_normal = gl_NormalMatrix * vec3(0.0, 0.0, 1.0);
|
||||
// eye_normal = gl_NormalMatrix * gl_Normal;
|
||||
// world_normal_z = gl_Normal.z;
|
||||
gl_Position = ftransform();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue