mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-26 18:22:33 +08:00
make old lightleak fix setting work again
This commit is contained in:
@ -1037,9 +1037,9 @@ void main() {
|
|||||||
// transition to fallback lightmap shadow mask.
|
// transition to fallback lightmap shadow mask.
|
||||||
shadowColor *= mix(isWater ? lightLeakFix : LM_shadowMapFallback, 1.0, shadowMapFalloff2);
|
shadowColor *= mix(isWater ? lightLeakFix : LM_shadowMapFallback, 1.0, shadowMapFalloff2);
|
||||||
|
|
||||||
// #ifdef OLD_LIGHTLEAK_FIX
|
#ifdef OLD_LIGHTLEAK_FIX
|
||||||
// if (isEyeInWater == 0) Shadows *= lightLeakFix; // light leak fix
|
if(isEyeInWater != 1) shadowColor *= lightLeakFix; // light leak fix
|
||||||
// #endif
|
#endif
|
||||||
|
|
||||||
//////////////////////////////// SUN SSS ////////////////////////////////
|
//////////////////////////////// SUN SSS ////////////////////////////////
|
||||||
#if SSS_TYPE != 0
|
#if SSS_TYPE != 0
|
||||||
|
@ -304,8 +304,8 @@ vec3 specularReflections(
|
|||||||
f0 = f0 == 0.0 ? 0.02 : f0;
|
f0 = f0 == 0.0 ? 0.02 : f0;
|
||||||
|
|
||||||
// if(isHand){
|
// if(isHand){
|
||||||
// f0 = 0.9;
|
f0 = 0.9;
|
||||||
// roughness = 0.25;
|
roughness = 0.25;
|
||||||
// }
|
// }
|
||||||
bool isMetal = f0 > 229.5/255.0;
|
bool isMetal = f0 > 229.5/255.0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user