diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-13 17:06:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 17:06:17 +0300 |
commit | 9013267da2269a9bd9683862b7449db1b1093afc (patch) | |
tree | 336172dfd6468e8bafa1d9c4a229624e85ffecfb /indra/newview/app_settings/shaders/class1/deferred/skyV.glsl | |
parent | 0cb2c511bc2a0f54eb7b3a4c2988d7ebec96e3be (diff) | |
parent | 38c2a5bde985a6a8a96d912d432f8bdf7e5b60be (diff) |
Merge pull request #1373 from secondlife/marchcat/x-ws-merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/skyV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/skyV.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl index 17ce2dee5b..6110b6ade0 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl @@ -92,7 +92,7 @@ void main() // Initialize temp variables vec3 sunlight = (sun_up_factor == 1) ? sunlight_color : moonlight_color * 0.7; //magic 0.7 to match legacy color - + // Sunlight attenuation effect (hue and brightness) due to atmosphere // this is used later for sunlight modulation at various altitudes vec3 light_atten = (blue_density + vec3(haze_density * 0.25)) * (density_multiplier * max_y); @@ -142,7 +142,7 @@ void main() sunlight *= max(0.0, (1. - cloud_shadow)); // Haze color below cloud - vec3 add_below_cloud = (blue_horizon * blue_weight * (sunlight + ambient) + vec3 add_below_cloud = (blue_horizon * blue_weight * (sunlight + ambient) + (haze_horizon * haze_weight) * (sunlight * haze_glow + ambient)); // Attenuate cloud color by atmosphere |