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);