From 728ebb992076a474ba23b44240bc99f385f7991c Mon Sep 17 00:00:00 2001 From: Xonk Date: Mon, 8 Jul 2024 20:56:41 -0400 Subject: [PATCH] fix atmosphere/volume ambient lights minimum light level --- shaders/dimensions/deferred.vsh | 4 ++-- shaders/lib/settings.glsl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/dimensions/deferred.vsh b/shaders/dimensions/deferred.vsh index 40814d0..02bf6ec 100644 --- a/shaders/dimensions/deferred.vsh +++ b/shaders/dimensions/deferred.vsh @@ -146,8 +146,8 @@ void main() { } // maximum control of color and luminance - // vec3 minimumlight = vec3(0.5,0.75,1.0) * (MIN_LIGHT_AMOUNT*0.001 + nightVision); - vec3 minimumlight = vec3(0.5,0.75,1.0) * nightVision; + vec3 minimumlight = vec3(0.5,0.75,1.0) * (min(MIN_LIGHT_AMOUNT,0.0025) + nightVision); + // vec3 minimumlight = vec3(0.5,0.75,1.0) * nightVision; averageSkyCol_Clouds = max( normalize(averageSkyCol_Clouds) * min(luma(averageSkyCol_Clouds) * 3.0,2.5) * (1.0-rainStrength*0.7), minimumlight); averageSkyCol = max(averageSkyCol * PLANET_GROUND_BRIGHTNESS, minimumlight); diff --git a/shaders/lib/settings.glsl b/shaders/lib/settings.glsl index 774654a..f20d233 100644 --- a/shaders/lib/settings.glsl +++ b/shaders/lib/settings.glsl @@ -1,4 +1,4 @@ -#define SHADER_VERSION_LABEL 480 // [480] +#define SHADER_VERSION_LABEL 481 // [481] #define saturate(x) clamp(x,0.0,1.0)