mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-22 00:37:35 +08:00
Add option to use the old style of light leak fixing using the lightmap
This commit is contained in:
@ -852,8 +852,12 @@ void main() {
|
||||
DirectLightColor = vec3(0.0);
|
||||
#endif
|
||||
|
||||
if(hand) DirectLightColor *= max(eyeBrightnessSmooth.y,0)/240.;
|
||||
|
||||
#ifdef OLD_LIGHTLEAK_FIX
|
||||
DirectLightColor *= pow(clamp(eyeBrightnessSmooth.y/240. + lightmap.y,0.0,1.0),2.0);
|
||||
#else
|
||||
if(hand) DirectLightColor *= pow(clamp(eyeBrightnessSmooth.y/240. + lightmap.y,0.0,1.0),2.0);
|
||||
#endif
|
||||
|
||||
vec3 AmbientLightColor = averageSkyCol_Clouds;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user