From cf1393c21acbe855c2d171108444c6de376626ea Mon Sep 17 00:00:00 2001 From: Xonk Date: Tue, 20 Jun 2023 00:41:03 -0400 Subject: [PATCH] fix tiny oopsie doopsie where the moon occluded the sun --- shaders/composite1.fsh | 2 +- shaders/shaders.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/composite1.fsh b/shaders/composite1.fsh index 871eb11..57563e7 100644 --- a/shaders/composite1.fsh +++ b/shaders/composite1.fsh @@ -858,9 +858,9 @@ void main() { background += stars(orbitstar) * 5.0 ; #ifndef ambientLight_only + background += Moon(np3, -WsunVec, blackbody2(12000), background); // moon background += drawSun(dot(lightCol.a * WsunVec, np3),0, DirectLightColor,vec3(0.0)) ; // sun // vec3 moon = drawSun(dot(lightCol.a * -WsunVec, np3),0, DirectLightColor/5,vec3(0.0)) ; // moon - background += Moon(np3, -WsunVec, blackbody2(12000), background); // moon #endif background *= clamp( (np3.y+ 0.02)*5.0 + (eyeAltitude - 319)/800000 ,0.0,1.0); diff --git a/shaders/shaders.properties b/shaders/shaders.properties index d6db5c9..36e59a7 100644 --- a/shaders/shaders.properties +++ b/shaders/shaders.properties @@ -94,7 +94,7 @@ screen = [Direct_Light] [World] [Ambient_light] [Fog] [Post_Processing] [Clouds] ######## CLIMATE screen.Climate.columns=1 - screen.Climate = Daily_Weather [Biome_Fog] [Seasons] + screen.Climate = Daily_Weather Biome_specific_environment [Seasons] ## BIOME SPECIFICS screen.Biome_Fog.columns=1