mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 04:31:17 -07:00
GCodeViewer -> Prototype for tool marker
This commit is contained in:
parent
fd32e7ea6a
commit
c02a77d942
5 changed files with 244 additions and 42 deletions
11
resources/shaders/gouraud_light.fs
Normal file
11
resources/shaders/gouraud_light.fs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 110
|
||||
|
||||
uniform vec4 uniform_color;
|
||||
|
||||
// x = tainted, y = specular;
|
||||
varying vec2 intensity;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = vec4(vec3(intensity.y, intensity.y, intensity.y) + uniform_color.rgb * intensity.x, uniform_color.a);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue