0
0
Fork 0
mirror of https://github.com/ZDoom/qzdoom-gpl.git synced 2025-06-03 10:11:22 +00:00
qzdoom-gpl/wadsrc/static/shaders/glsl/func_brightmap.fp

12 lines
244 B
GLSL

uniform sampler2D texture2;
vec4 ProcessTexel()
{
return getTexel(vTexCoord.st);
}
vec4 ProcessLight(vec4 color)
{
vec4 brightpix = desaturate(texture(texture2, vTexCoord.st));
return vec4(min (color.rgb + brightpix.rgb, 1.0), color.a);
}