mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2026-10-10 05:03:04 +08:00
lower atmoshphere haze amount if LOD mod is used
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user