mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-07 13:30:16 +00:00
4d005bdfa0
All those special shaders have been merged together. Mostly working but the non-shader lighting seems a bit broken.
12 lines
256 B
GLSL
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);
|
|
}
|