mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-11 16:00:17 -07:00
GCodeViewer -> Toggle visibility of shells
This commit is contained in:
parent
bc05ab985c
commit
cc774dece7
7 changed files with 363 additions and 180 deletions
13
resources/shaders/shells.fs
Normal file
13
resources/shaders/shells.fs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 110
|
||||
|
||||
const vec3 ZERO = vec3(0.0, 0.0, 0.0);
|
||||
|
||||
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