PrusaSlicer-NonPlainar/resources/shaders/gouraud_light.fs

12 lines
209 B
Forth
Raw Normal View History

#version 110
uniform vec4 uniform_color;
// x = tainted, y = specular;
varying vec2 intensity;
void main()
{
2021-05-13 11:57:09 +00:00
gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * intensity.x, uniform_color.a);
}