make old lightleak fix setting work again

This commit is contained in:
Xonk
2025-03-16 18:36:35 -04:00
parent 215081fe3d
commit db7956811b
2 changed files with 5 additions and 5 deletions

View File

@ -1037,9 +1037,9 @@ void main() {
// transition to fallback lightmap shadow mask.
shadowColor *= mix(isWater ? lightLeakFix : LM_shadowMapFallback, 1.0, shadowMapFalloff2);
// #ifdef OLD_LIGHTLEAK_FIX
// if (isEyeInWater == 0) Shadows *= lightLeakFix; // light leak fix
// #endif
#ifdef OLD_LIGHTLEAK_FIX
if(isEyeInWater != 1) shadowColor *= lightLeakFix; // light leak fix
#endif
//////////////////////////////// SUN SSS ////////////////////////////////
#if SSS_TYPE != 0

View File

@ -304,8 +304,8 @@ vec3 specularReflections(
f0 = f0 == 0.0 ? 0.02 : f0;
// if(isHand){
// f0 = 0.9;
// roughness = 0.25;
f0 = 0.9;
roughness = 0.25;
// }
bool isMetal = f0 > 229.5/255.0;