mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 21:10:50 +00:00
9c74c9629a
# Conflicts: # src/gl/shaders/gl_shader.cpp # src/hwrenderer/textures/hw_material.cpp # src/r_data/gldefs.cpp # wadsrc/static/shaders/glsl/main.fp
17 lines
269 B
GLSL
17 lines
269 B
GLSL
|
|
#if defined(BRIGHTMAP)
|
|
|
|
vec4 ProcessLight(Material material, vec4 color)
|
|
{
|
|
vec4 brightpix = desaturate(material.Bright);
|
|
return vec4(min(color.rgb + brightpix.rgb, 1.0), color.a);
|
|
}
|
|
|
|
#else
|
|
|
|
vec4 ProcessLight(Material material, vec4 color)
|
|
{
|
|
return color;
|
|
}
|
|
|
|
#endif
|