diff options
| author | RunitaiLinden <davep@lindenlab.com> | 2023-04-05 16:48:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 16:48:34 -0500 |
| commit | 5bf60f5d9e722f6210572fd92e79e9994abd2ec1 (patch) | |
| tree | 5fa1c538ff87e0e34af61e1edd2c60807bd2a446 /indra/newview/app_settings/shaders/class2 | |
| parent | 1f79379bf215c5368337c64b4f72c7c9ef3e09c2 (diff) | |
SL-19538 Followup -- fix for dynamic exposure having large gaps in it… (#157)
* SL-19538 Followup -- fix for dynamic exposure having large gaps in its luminance sampling.
* SL-19538 Followup -- review feedback changes.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
| -rw-r--r-- | indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl index 22e93496d2..49ff49fdd8 100644 --- a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl +++ b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl @@ -36,7 +36,9 @@ vec3 atmosFragLighting(vec3 light, vec3 additive, vec3 atten) { light *= atten.r; additive = srgb_to_linear(additive*2.0); - additive *= sun_up_factor + 1.0; + // magic 3.0 here is to match the default RenderSkyHDRScale -- this parameter needs to be plumbed into sky settings or something + // so it's available to all shaders that call atmosFragLighting instead of just softenLightF.glsl + additive *= sun_up_factor*3.0 + 1.0; light += additive; return light; } |
