2022-03-21 12:10:47 +00:00
|
|
|
#version 140
|
|
|
|
|
|
|
|
uniform vec4 uniform_color;
|
|
|
|
uniform float emission_factor;
|
|
|
|
|
|
|
|
// x = tainted, y = specular;
|
|
|
|
in vec2 intensity;
|
|
|
|
|
2022-03-24 13:45:59 +00:00
|
|
|
out vec4 out_color;
|
|
|
|
|
2022-03-21 12:10:47 +00:00
|
|
|
void main()
|
|
|
|
{
|
2022-03-24 13:45:59 +00:00
|
|
|
out_color = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
|
2022-03-21 12:10:47 +00:00
|
|
|
}
|