2018-01-23 19:51:48 +00:00
|
|
|
#if defined(SPECULAR)
|
|
|
|
uniform sampler2D texture4;
|
|
|
|
#define brighttexture texture4
|
|
|
|
#elif defined(PBR)
|
|
|
|
uniform sampler2D texture6;
|
|
|
|
#define brighttexture texture6
|
|
|
|
#else
|
2013-06-23 09:13:01 +00:00
|
|
|
uniform sampler2D texture2;
|
2018-01-23 19:51:48 +00:00
|
|
|
#define brighttexture texture2
|
|
|
|
#endif
|
2013-06-23 09:13:01 +00:00
|
|
|
|
2014-05-12 12:45:41 +00:00
|
|
|
vec4 ProcessTexel()
|
2013-06-23 09:13:01 +00:00
|
|
|
{
|
2014-07-14 22:19:41 +00:00
|
|
|
return getTexel(vTexCoord.st);
|
2013-06-23 09:13:01 +00:00
|
|
|
}
|
|
|
|
|
2014-05-12 12:45:41 +00:00
|
|
|
vec4 ProcessLight(vec4 color)
|
|
|
|
{
|
2018-01-23 19:51:48 +00:00
|
|
|
vec4 brightpix = desaturate(texture(brighttexture, vTexCoord.st));
|
2014-05-12 12:45:41 +00:00
|
|
|
return vec4(min (color.rgb + brightpix.rgb, 1.0), color.a);
|
|
|
|
}
|