From 63bb1d3ad4d1819682f684596d8172608e571000 Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 16 Jul 2023 22:08:17 -0400 Subject: [PATCH] temporary hand lightleak fix --- shaders/composite1.fsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shaders/composite1.fsh b/shaders/composite1.fsh index 16ffb95..d31edb6 100644 --- a/shaders/composite1.fsh +++ b/shaders/composite1.fsh @@ -852,6 +852,8 @@ void main() { DirectLightColor = vec3(0.0); #endif + if(hand) DirectLightColor *= max(eyeBrightnessSmooth.y,0)/240.; + vec3 AmbientLightColor = averageSkyCol_Clouds; @@ -929,7 +931,7 @@ void main() { bool ShadowBounds = false; - if(shadowDistanceRenderMul > 0.0) ShadowBounds = length(p3_shadow) < shadowDistance; + if(shadowDistanceRenderMul > 0.0) ShadowBounds = length(p3_shadow) < max(shadowDistance - 20,0.0); if(shadowDistanceRenderMul < 0.0) ShadowBounds = abs(projectedShadowPosition.x) < 1.0-1.5/shadowMapResolution && abs(projectedShadowPosition.y) < 1.0-1.5/shadowMapResolution && abs(projectedShadowPosition.z) < 6.0;