diff options
Diffstat (limited to 'indra/newview/app_settings')
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 27 | ||||
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl | 2 | 
2 files changed, 19 insertions, 10 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 2b2a2d9d1b..f3065d12b8 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -10590,27 +10590,38 @@        <key>Value</key>        <integer>3</integer>      </map> -  <key>RenderSkyHDRScale</key> +  <key>RenderSkyAutoAdjustLegacy</key>    <map>      <key>Comment</key> -    <string>Amount to over-brighten sun for HDR effect during the day</string> +    <string>If true, automatically adjust legacy skies (those without a probe ambiance value) to take advantage of probes and HDR.  This is the "opt-out" button for HDR and tonemapping when coupled with a sky setting that predates PBR.</string>      <key>Persist</key> -    <integer>0</integer> +    <integer>1</integer>      <key>Type</key> -    <string>F32</string> +    <string>Boolean</string>      <key>Value</key> -    <real>1.0</real> +    <integer>1</integer>    </map> -  <key>RenderSkyAutoAdjustLegacy</key> +  <key>RenderSkyAutoAdjustAmbientScale</key>    <map>      <key>Comment</key> -    <string>If true, automatically adjust legacy skies (those without a probe ambiance value) to take advantage of probes and HDR.  This is the "opt-out" button for HDR and tonemapping when coupled with a sky setting that predates PBR.</string> +    <string>Amount to scale ambient when auto-adjusting legacy skies</string>      <key>Persist</key>      <integer>1</integer>      <key>Type</key> -    <string>Boolean</string> +    <string>F32</string>      <key>Value</key> +    <real>0.5</real> +  </map> +  <key>RenderSkyAutoAdjustHDRScale</key> +  <map> +    <key>Comment</key> +    <string>HDR Scale value to use when auto-adjusting legacy skies</string> +    <key>Persist</key>      <integer>1</integer> +    <key>Type</key> +    <string>F32</string> +    <key>Value</key> +    <real>2.0</real>    </map>    <key>RenderReflectionProbeMaxLocalLightAmbiance</key>    <map> diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl index 48cf234aa0..41a848a14f 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl @@ -36,8 +36,6 @@ vec3 atmosFragLighting(vec3 light, vec3 additive, vec3 atten)  {       light *= atten.r;      additive = srgb_to_linear(additive*2.0); -    // magic 1.25 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 *= sky_hdr_scale;      light += additive;      return light; | 
