20 lines
357 B
Forth
20 lines
357 B
Forth
|
#version 140
|
||
|
|
||
|
uniform vec4 uniform_color;
|
||
|
uniform float emission_factor;
|
||
|
|
||
|
// x = tainted, y = specular;
|
||
|
in vec2 intensity;
|
||
|
|
||
|
in float clipping_planes_dot;
|
||
|
|
||
|
out vec4 out_color;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
if (clipping_planes_dot < 0.0)
|
||
|
discard;
|
||
|
|
||
|
out_color = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
|
||
|
}
|