fix atmosphere/volume ambient lights minimum light level

This commit is contained in:
Xonk 2024-07-08 20:56:41 -04:00
parent c169916c40
commit 728ebb9920
2 changed files with 3 additions and 3 deletions

View File

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

View File

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