lower atmoshphere haze amount if LOD mod is used

This commit is contained in:
Xonk
2025-12-30 00:09:16 -05:00
parent 8e91c58ae9
commit f5fc71da67
+5 -1
View File
@@ -289,7 +289,11 @@ vec4 GetVolumetricFog(
#endif
/// ATMOSOPHERE
float planetVolume = clamp(1.0 - length((rayProgress-cameraPosition) - vec3(0.0, 250.0, 0.0)) / 2500.0, 0.0,1.0);
vec2 airCoef = exp2(-max(rayProgress.y-62.0,0.0)/vec2(8.0e3, 1.2e3)*vec2(6.,7.0)) * planetVolume * 25.0 * Haze_amount;
#ifdef USING_LOD_MOD
vec2 airCoef = exp2(-max(rayProgress.y-62.0,0.0)/vec2(8.0e3, 1.2e3)*vec2(6.,7.0)) * planetVolume * 12.5 * Haze_amount;
#else
vec2 airCoef = exp2(-max(rayProgress.y-62.0,0.0)/vec2(8.0e3, 1.2e3)*vec2(6.,7.0)) * planetVolume * 25.0 * Haze_amount;
#endif
vec3 rayleigh = rayleighCoeffs*airCoef.x;
vec3 mie = mieCoeffs*(airCoef.y + min(Haze_amount,1.0));
vec3 airDensity = kill*(rayleigh + mie);