diff options
| author | Dave Parks <davep@lindenlab.com> | 2023-03-02 18:36:57 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2023-03-02 18:36:57 -0600 | 
| commit | 7139444461aae953a263a60f1a093070cc870225 (patch) | |
| tree | 8370d8c9c24830c81fcf834be19c95726d0524cd /indra/newview/app_settings/shaders/class2/windlight | |
| parent | bc7856098f70371dd392c74689df267cce819aa7 (diff) | |
SL-19281 Post review cleanup.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight')
| -rw-r--r-- | indra/newview/app_settings/shaders/class2/windlight/atmosphericsFuncs.glsl | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsFuncs.glsl b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsFuncs.glsl index 768f422060..34ac0c62dc 100644 --- a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsFuncs.glsl +++ b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsFuncs.glsl @@ -137,12 +137,15 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou      additive = (blue_horizon.rgb * blue_weight.rgb) * (cs + tmpAmbient.rgb) + (haze_horizon * haze_weight.rgb) * (cs * haze_glow + tmpAmbient.rgb);      // brightness of surface both sunlight and ambient +     +    // fudge sunlit and amblit to get consistent lighting compared to legacy +    // midday before PBR was a thing      sunlit = sunlight.rgb * 0.7;      amblit = tmpAmbient.rgb * 0.25; +      additive *= vec3(1.0 - combined_haze);  } -  vec3 srgb_to_linear(vec3 col);  // provide a touch of lighting in the opposite direction of the sun light  @@ -163,6 +166,8 @@ void calcAtmosphericVarsLinear(vec3 inPositionEye, vec3 norm, vec3 light_dir, ou  {      calcAtmosphericVars(inPositionEye, light_dir, 1.0, sunlit, amblit, additive, atten, false); +    // multiply by 2 to get same colors as when the "scaleSoftClip" implementation was doubling color values +    // (allows for mixing of light sources other than sunlight e.g. reflection probes)      sunlit *= 2.0;      amblit *= 2.0; | 
