diff options
Diffstat (limited to 'indra/newview/app_settings')
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 67 | ||||
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl | 6 | 
2 files changed, 71 insertions, 2 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 0cd63d9d5f..4612ee1a82 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -10656,6 +10656,73 @@      <key>Value</key>      <real>2.0</real>    </map> +  <key>RendeSkyAutoAdjustBlueHorizonScale</key> +  <map> +    <key>Comment</key> +    <string>Blue Horizon 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>1.0</real> +  </map> +  <key>RendeSkyAutoAdjustBlueDensityScale</key> +  <map> +    <key>Comment</key> +    <string>Blue Horizon 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>1.0</real> +  </map> +  <key>RenderSkyAutoAdjustSunColorScale</key> +  <map> +    <key>Comment</key> +    <string>Sun color scalar when auto-adjusting legacy skies</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>F32</string> +    <key>Value</key> +    <real>1.0</real> +  </map> +  <key>RenderSkyAutoAdjustProbeAmbiance</key> +  <map> +    <key>Comment</key> +    <string>Probe ambiance value when auto-adjusting legacy skies</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>F32</string> +    <key>Value</key> +    <real>1.0</real> +  </map> +  <key>RenderSkySunlightScale</key> +  <map> +    <key>Comment</key> +    <string>Sunlight scale fudge factor for matching with pre-PBR viewer</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>F32</string> +    <key>Value</key> +    <real>1.5</real> +  </map> +  <key>RenderSkyAmbientScale</key> +  <map> +    <key>Comment</key> +    <string>Ambient scale fudge factor for matching with pre-PBR viewer</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>F32</string> +    <key>Value</key> +    <real>0.5</real> +  </map> +      <key>RenderReflectionProbeMaxLocalLightAmbiance</key>    <map>      <key>Comment</key> diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl index 437fa0a6d5..53474ded7f 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl @@ -40,6 +40,8 @@ uniform vec3  glow;  uniform float scene_light_strength;  uniform float sun_moon_glow_factor;  uniform float sky_hdr_scale; +uniform float sky_sunlight_scale; +uniform float sky_ambient_scale;  float getAmbientClamp() { return 1.0f; } @@ -148,8 +150,8 @@ void calcAtmosphericVarsLinear(vec3 inPositionEye, vec3 norm, vec3 light_dir, ou      // multiply to get similar colors as when the "scaleSoftClip" implementation was doubling color values      // (allows for mixing of light sources other than sunlight e.g. reflection probes) -    sunlit *= 1.5; -    amblit *= 0.5; +    sunlit *= sky_sunlight_scale; //1.5; +    amblit *= sky_ambient_scale; //0.5;      // override amblit with ambient_color if sky probe ambiance is not zero      amblit = mix(amblit, ambient_color, clamp(sky_hdr_scale-1.0, 0.0, 1.0)); | 
