GCodeViewer -> Toggle visibility of shells

This commit is contained in:
enricoturri1966 2020-04-15 14:31:39 +02:00
parent bc05ab985c
commit cc774dece7
7 changed files with 363 additions and 180 deletions

View 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);
}