From 01a86a5a1e87b141e0b9ef54507eceba09150a72 Mon Sep 17 00:00:00 2001 From: jsrobson10 Date: Tue, 20 Oct 2020 11:25:38 +1100 Subject: [PATCH] Fixed some peter planning --- src/resources/shader/environmentRenderer.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/shader/environmentRenderer.fsh b/src/resources/shader/environmentRenderer.fsh index 6634d8a..627cf40 100644 --- a/src/resources/shader/environmentRenderer.fsh +++ b/src/resources/shader/environmentRenderer.fsh @@ -79,7 +79,7 @@ void main() vec2 sunDepthTexPos = pSunDepth.xy * 0.5 + 0.5; - vec3 light_day = max(vec3(0), pSunDepth.z < (texture(depthmap, sunDepthTexPos).r * 2 - 1 + 0.001 + vec3 light_day = max(vec3(0), pSunDepth.z < (texture(depthmap, sunDepthTexPos).r * 2 - 1 + 0.0001 ) ? lighting_day_high : lighting_day_low); float light_src = scaleLight(max(0, light.r)) - abs(pLightMapPos.y) * 0.1; vec4 rgb = vec4((pRGB % 64) / 64.0, ((pRGB >> 6) % 64) / 64.0, ((pRGB >> 12) % 64) / 64.0, 1);