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