gzdoom/wadsrc/static/shaders/glsl/func_brightmap.fp
Christoph Oelckers 4d005bdfa0 shader rework
All those special shaders have been merged together.
Mostly working but the non-shader lighting seems a bit broken.
2014-05-12 14:45:41 +02:00

12 lines
256 B
GLSL

uniform sampler2D texture2;
vec4 ProcessTexel()
{
return getTexel(gl_TexCoord[0].st);
}
vec4 ProcessLight(vec4 color)
{
vec4 brightpix = desaturate(texture2D(texture2, gl_TexCoord[0].st));
return vec4(min (color.rgb + brightpix.rgb, 1.0), color.a);
}