summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/logcontrol.xml2
-rw-r--r--indra/newview/app_settings/settings.xml11
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl69
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/advancedAtmoV.glsl43
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/cloudsF.glsl104
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/cloudsV.glsl190
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/skyF.glsl71
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/skyV.glsl43
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/transportF.glsl53
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D12AM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D12PM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D3AM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D3PM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D6AM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D6PM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D9AM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/A%2D9PM.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Barcelona.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Blizzard.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Blue%20Midday.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Coastal%20Afternoon.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Coastal%20Sunset.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Default.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Desert%20Sunset.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Fine%20Day.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Fluffy%20Big%20Clouds.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Foggy.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Funky%20Funky%20Funky.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Funky%20Funky.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Gelatto.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Ghost.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Incongruent%20Truths.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midday%201.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midday%202.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midday%203.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midday%204.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midday.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Midnight.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Night.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Pirate.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Purple.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Sailor%27s%20Delight.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Sheer%20Surreality.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Sunrise.xml56
-rw-r--r--indra/newview/app_settings/windlight/skies/Sunset.xml56
48 files changed, 2606 insertions, 8 deletions
diff --git a/indra/newview/app_settings/logcontrol.xml b/indra/newview/app_settings/logcontrol.xml
index ecd7c4bc36..380d7762d6 100644
--- a/indra/newview/app_settings/logcontrol.xml
+++ b/indra/newview/app_settings/logcontrol.xml
@@ -35,7 +35,7 @@
</array>
<key>tags</key>
<array>
- </array>
+ </array>
</map>
<map>
<key>level</key><string>DEBUG</string>
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index dd07972249..06d8599e73 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -10122,6 +10122,17 @@
<key>Value</key>
<integer>0</integer>
</map>
+ <key>RenderUseAdvancedAtmospherics</key>
+ <map>
+ <key>Comment</key>
+ <string>Use fancy precomputed atmospherics and stuff.</string>
+ <key>Persist</key>
+ <integer>1</integer>
+ <key>Type</key>
+ <string>Boolean</string>
+ <key>Value</key>
+ <integer>0</integer>
+ </map>
<key>RenderUseTriStrips</key>
<map>
<key>Comment</key>
diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
index 03bdb754b5..7f1a8cce0d 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
@@ -397,7 +397,9 @@ void main()
float da = dot(norm.xyz, sun_dir.xyz);
float final_da = max(0.0,da);
- final_da = min(final_da, 1.0f);
+ final_da = min(final_da, 1.0f);
+
+// why an ad hoc gamma boost here? srgb_to_linear instead?
final_da = pow(final_da, 1.0/1.3);
vec4 diffuse = texture2DRect(diffuseRect, tc);
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
index f7832521fa..cf076d156a 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
@@ -276,10 +276,6 @@ void calcAtmospherics(vec3 inPositionEye, float ambFactor) {
+ tmpAmbient)));
//brightness of surface both sunlight and ambient
- /*setSunlitColor(pow(vec3(sunlight * .5), vec3(global_gamma)) * global_gamma);
- setAmblitColor(pow(vec3(tmpAmbient * .25), vec3(global_gamma)) * global_gamma);
- setAdditiveColor(pow(getAdditiveColor() * vec3(1.0 - temp1), vec3(global_gamma)) * global_gamma);*/
-
setSunlitColor(vec3(sunlight * .5));
setAmblitColor(vec3(tmpAmbient * .25));
setAdditiveColor(getAdditiveColor() * vec3(1.0 - temp1));
diff --git a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
index 81af1fdc8a..b2d9de6e73 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
@@ -238,8 +238,8 @@ void main()
proj_tc.xyz /= proj_tc.w;
- float fa = falloff+1.0;
- float dist_atten = min(1.0-(dist-1.0*(1.0-fa))/fa, 1.0);
+ float fa = falloff + 1.0;
+ float dist_atten = min(1.0 - (dist - 1.0 * (1.0 - fa)) / fa, 1.0);
dist_atten *= dist_atten;
dist_atten *= 2.0;
diff --git a/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl
new file mode 100644
index 0000000000..d27363a60c
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl
@@ -0,0 +1,69 @@
+/**
+ * @file advancedAtmoF.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+#ifdef DEFINE_GL_FRAGCOLOR
+out vec4 frag_color;
+#else
+#define frag_color gl_FragColor
+#endif
+
+in vec3 view_dir;
+
+uniform vec3 cameraPosLocal;
+uniform vec3 sun_direction;
+
+uniform sampler2D transmittance_texture;
+uniform sampler3D scattering_texture;
+uniform sampler3D mie_scattering_texture;
+
+vec3 GetSolarLuminance();
+vec3 GetSkyLuminance(vec3 camPos, vec3 view_dir, float shadow_length, vec3 sun_dir, out vec3 transmittance);
+vec3 GetSkyLuminanceToPoint(vec3 camPos, vec3 pos, float shadow_length, vec3 sun_dir, out vec3 transmittance);
+vec3 GetSunAndSkyIlluminance(vec3 pos, vec3 norm, vec3 sun_dir, out vec3 sky_irradiance);
+
+void main()
+{
+ vec3 view_direction = normalize(view_dir);
+
+ vec3 camPos = cameraPosLocal;
+ vec3 transmittance;
+ vec3 radiance = GetSkyLuminance(camPos, view_direction, 0.0f, sun_direction, transmittance);
+
+ radiance *= transmittance;
+
+ // If the view ray intersects the Sun, add the Sun radiance.
+ if (dot(view_direction, sun_direction) >= sun_size.y)
+ {
+ radiance = radiance + transmittance * GetSolarLuminance();
+ }
+
+ vec3 color = vec3(1.0) - exp(-radiance);
+ color = pow(color, vec3(1.0 / 2.2));
+
+ frag_color.rgb = color;
+
+ frag_color.a = 1.0;
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoV.glsl b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoV.glsl
new file mode 100644
index 0000000000..52a7595379
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoV.glsl
@@ -0,0 +1,43 @@
+/**
+ * @file advancedAtmoV.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+uniform mat4 modelview_projection_matrix;
+
+ATTRIBUTE vec3 position;
+
+// Inputs
+uniform vec3 camPosLocal;
+
+out vec3 view_dir;
+
+void main()
+{
+ // World / view / projection
+ gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
+
+ // this will be normalized in the frag shader...
+ view_dir = position.xyz - camPosLocal.xyz;
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/cloudsF.glsl b/indra/newview/app_settings/shaders/class3/windlight/cloudsF.glsl
new file mode 100644
index 0000000000..96c70651b1
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/cloudsF.glsl
@@ -0,0 +1,104 @@
+/**
+ * @file WLCloudsF.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+#ifdef DEFINE_GL_FRAGCOLOR
+out vec4 frag_color;
+#else
+#define frag_color gl_FragColor
+#endif
+
+/////////////////////////////////////////////////////////////////////////
+// The fragment shader for the sky
+/////////////////////////////////////////////////////////////////////////
+
+VARYING vec4 vary_CloudColorSun;
+VARYING vec4 vary_CloudColorAmbient;
+VARYING float vary_CloudDensity;
+VARYING vec2 vary_texcoord0;
+VARYING vec2 vary_texcoord1;
+VARYING vec2 vary_texcoord2;
+VARYING vec2 vary_texcoord3;
+
+uniform sampler2D cloud_noise_texture;
+uniform vec4 cloud_pos_density1;
+uniform vec4 cloud_pos_density2;
+uniform vec4 gamma;
+
+/// Soft clips the light with a gamma correction
+vec3 scaleSoftClip(vec3 light) {
+ //soft clip effect:
+ light = 1. - clamp(light, vec3(0.), vec3(1.));
+ light = 1. - pow(light, gamma.xxx);
+
+ return light;
+}
+
+void main()
+{
+ // Set variables
+ vec2 uv1 = vary_texcoord0.xy;
+ vec2 uv2 = vary_texcoord1.xy;
+
+ vec4 cloudColorSun = vary_CloudColorSun;
+ vec4 cloudColorAmbient = vary_CloudColorAmbient;
+ float cloudDensity = vary_CloudDensity;
+ vec2 uv3 = vary_texcoord2.xy;
+ vec2 uv4 = vary_texcoord3.xy;
+
+ // Offset texture coords
+ uv1 += cloud_pos_density1.xy; //large texture, visible density
+ uv2 += cloud_pos_density1.xy; //large texture, self shadow
+ uv3 += cloud_pos_density2.xy; //small texture, visible density
+ uv4 += cloud_pos_density2.xy; //small texture, self shadow
+
+
+ // Compute alpha1, the main cloud opacity
+ float alpha1 = (texture2D(cloud_noise_texture, uv1).x - 0.5) + (texture2D(cloud_noise_texture, uv3).x - 0.5) * cloud_pos_density2.z;
+ alpha1 = min(max(alpha1 + cloudDensity, 0.) * 10. * cloud_pos_density1.z, 1.);
+
+ // And smooth
+ alpha1 = 1. - alpha1 * alpha1;
+ alpha1 = 1. - alpha1 * alpha1;
+
+
+ // Compute alpha2, for self shadowing effect
+ // (1 - alpha2) will later be used as percentage of incoming sunlight
+ float alpha2 = (texture2D(cloud_noise_texture, uv2).x - 0.5);
+ alpha2 = min(max(alpha2 + cloudDensity, 0.) * 2.5 * cloud_pos_density1.z, 1.);
+
+ // And smooth
+ alpha2 = 1. - alpha2;
+ alpha2 = 1. - alpha2 * alpha2;
+
+ // Combine
+ vec4 color;
+ color = (cloudColorSun*(1.-alpha2) + cloudColorAmbient);
+ color *= 2.;
+
+ /// Gamma correct for WL (soft clip effect).
+ frag_color.rgb = scaleSoftClip(color.rgb);
+ frag_color.a = alpha1;
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/cloudsV.glsl b/indra/newview/app_settings/shaders/class3/windlight/cloudsV.glsl
new file mode 100644
index 0000000000..c1dd45cd67
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/cloudsV.glsl
@@ -0,0 +1,190 @@
+/**
+ * @file WLCloudsV.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+uniform mat4 modelview_projection_matrix;
+
+ATTRIBUTE vec3 position;
+ATTRIBUTE vec2 texcoord0;
+
+//////////////////////////////////////////////////////////////////////////
+// The vertex shader for creating the atmospheric sky
+///////////////////////////////////////////////////////////////////////////////
+
+// Output parameters
+VARYING vec4 vary_CloudColorSun;
+VARYING vec4 vary_CloudColorAmbient;
+VARYING float vary_CloudDensity;
+VARYING vec2 vary_texcoord0;
+VARYING vec2 vary_texcoord1;
+VARYING vec2 vary_texcoord2;
+VARYING vec2 vary_texcoord3;
+
+// Inputs
+uniform vec3 camPosLocal;
+
+uniform vec4 lightnorm;
+uniform vec4 sunlight_color;
+uniform vec4 ambient;
+uniform vec4 blue_horizon;
+uniform vec4 blue_density;
+uniform float haze_horizon;
+uniform float haze_density;
+
+uniform float cloud_shadow;
+uniform float density_multiplier;
+uniform float max_y;
+
+uniform vec4 glow;
+
+uniform vec4 cloud_color;
+
+uniform float cloud_scale;
+
+void main()
+{
+
+ // World / view / projection
+ gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
+
+ vary_texcoord0 = texcoord0;
+
+ // Get relative position
+ vec3 P = position.xyz - camPosLocal.xyz + vec3(0,50,0);
+
+ // Set altitude
+ if (P.y > 0.)
+ {
+ P *= (max_y / P.y);
+ }
+ else
+ {
+ P *= (-32000. / P.y);
+ }
+
+ // Can normalize then
+ vec3 Pn = normalize(P);
+ float Plen = length(P);
+
+ // Initialize temp variables
+ vec4 temp1 = vec4(0.);
+ vec4 temp2 = vec4(0.);
+ vec4 blue_weight;
+ vec4 haze_weight;
+ vec4 sunlight = sunlight_color;
+ vec4 light_atten;
+
+
+ // Sunlight attenuation effect (hue and brightness) due to atmosphere
+ // this is used later for sunlight modulation at various altitudes
+ light_atten = (blue_density + vec4(haze_density * 0.25)) * (density_multiplier * max_y);
+
+ // Calculate relative weights
+ temp1 = blue_density + haze_density;
+ blue_weight = blue_density / temp1;
+ haze_weight = haze_density / temp1;
+
+ // Compute sunlight from P & lightnorm (for long rays like sky)
+ temp2.y = max(0., max(0., Pn.y) * 1.0 + lightnorm.y );
+ temp2.y = 1. / temp2.y;
+ sunlight *= exp( - light_atten * temp2.y);
+
+ // Distance
+ temp2.z = Plen * density_multiplier;
+
+ // Transparency (-> temp1)
+ // ATI Bugfix -- can't store temp1*temp2.z in a variable because the ati
+ // compiler gets confused.
+ temp1 = exp(-temp1 * temp2.z);
+
+
+ // Compute haze glow
+ temp2.x = dot(Pn, lightnorm.xyz);
+ temp2.x = 1. - temp2.x;
+ // temp2.x is 0 at the sun and increases away from sun
+ temp2.x = max(temp2.x, .001);
+ // Set a minimum "angle" (smaller glow.y allows tighter, brighter hotspot)
+ temp2.x *= glow.x;
+ // Higher glow.x gives dimmer glow (because next step is 1 / "angle")
+ temp2.x = pow(temp2.x, glow.z);
+ // glow.z should be negative, so we're doing a sort of (1 / "angle") function
+
+ // Add "minimum anti-solar illumination"
+ temp2.x += .25;
+
+ // Increase ambient when there are more clouds
+ vec4 tmpAmbient = ambient;
+ tmpAmbient += (1. - tmpAmbient) * cloud_shadow * 0.5;
+
+ // Dim sunlight by cloud shadow percentage
+ sunlight *= (1. - cloud_shadow);
+
+ // Haze color below cloud
+ vec4 additiveColorBelowCloud = ( blue_horizon * blue_weight * (sunlight + tmpAmbient)
+ + (haze_horizon * haze_weight) * (sunlight * temp2.x + tmpAmbient)
+ );
+
+ // CLOUDS
+
+ sunlight = sunlight_color;
+ temp2.y = max(0., lightnorm.y * 2.);
+ temp2.y = 1. / temp2.y;
+ sunlight *= exp( - light_atten * temp2.y);
+
+ // Cloud color out
+ vary_CloudColorSun = (sunlight * temp2.x) * cloud_color;
+ vary_CloudColorAmbient = tmpAmbient * cloud_color;
+
+ // Attenuate cloud color by atmosphere
+ temp1 = sqrt(temp1); //less atmos opacity (more transparency) below clouds
+ vary_CloudColorSun *= temp1;
+ vary_CloudColorAmbient *= temp1;
+ vec4 oHazeColorBelowCloud = additiveColorBelowCloud * (1. - temp1);
+
+ // Make a nice cloud density based on the cloud_shadow value that was passed in.
+ vary_CloudDensity = 2. * (cloud_shadow - 0.25);
+
+
+ // Texture coords
+ vary_texcoord0 = texcoord0;
+ vary_texcoord0.xy -= 0.5;
+ vary_texcoord0.xy /= cloud_scale;
+ vary_texcoord0.xy += 0.5;
+
+ vary_texcoord1 = vary_texcoord0;
+ vary_texcoord1.x += lightnorm.x * 0.0125;
+ vary_texcoord1.y += lightnorm.z * 0.0125;
+
+ vary_texcoord2 = vary_texcoord0 * 16.;
+ vary_texcoord3 = vary_texcoord1 * 16.;
+
+ // Combine these to minimize register use
+ vary_CloudColorAmbient += oHazeColorBelowCloud;
+
+ // needs this to compile on mac
+ //vary_AtmosAttenuation = vec3(0.0,0.0,0.0);
+
+ // END CLOUDS
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/skyF.glsl b/indra/newview/app_settings/shaders/class3/windlight/skyF.glsl
new file mode 100644
index 0000000000..c71eaf4b13
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/skyF.glsl
@@ -0,0 +1,71 @@
+/**
+ * @file advancedAtmoF.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+#ifdef DEFINE_GL_FRAGCOLOR
+out vec4 frag_color;
+#else
+#define frag_color gl_FragColor
+#endif
+
+in vec3 view_dir;
+
+uniform vec3 cameraPosLocal;
+uniform vec3 sun_direction;
+uniform vec2 sun_size;
+
+uniform sampler2D cloud_noise_texture;
+uniform sampler2D transmittance_texture;
+uniform sampler3D scattering_texture;
+uniform sampler3D mie_scattering_texture;
+
+vec3 GetSolarLuminance();
+vec3 GetSkyLuminance(vec3 camPos, vec3 view_dir, float shadow_length, vec3 sun_dir, out vec3 transmittance);
+vec3 GetSkyLuminanceToPoint(vec3 camPos, vec3 pos, float shadow_length, vec3 sun_dir, out vec3 transmittance);
+vec3 GetSunAndSkyIlluminance(vec3 pos, vec3 norm, vec3 sun_dir, out vec3 sky_irradiance);
+
+void main()
+{
+ vec3 view_direction = normalize(view_dir);
+
+ vec3 camPos = cameraPosLocal;
+ vec3 transmittance;
+ vec3 radiance = GetSkyLuminance(camPos, view_direction, 0.0f, sun_direction, transmittance);
+
+ radiance *= transmittance;
+
+ // If the view ray intersects the Sun, add the Sun radiance.
+ if (dot(view_direction, sun_direction) >= sun_size.y)
+ {
+ radiance = radiance + transmittance * GetSolarLuminance();
+ }
+
+ vec3 color = vec3(1.0) - exp(-radiance);
+ color = pow(color, vec3(1.0 / 2.2));
+
+ frag_color.rgb = color;
+
+ frag_color.a = 1.0;
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/skyV.glsl b/indra/newview/app_settings/shaders/class3/windlight/skyV.glsl
new file mode 100644
index 0000000000..52a7595379
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/skyV.glsl
@@ -0,0 +1,43 @@
+/**
+ * @file advancedAtmoV.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+uniform mat4 modelview_projection_matrix;
+
+ATTRIBUTE vec3 position;
+
+// Inputs
+uniform vec3 camPosLocal;
+
+out vec3 view_dir;
+
+void main()
+{
+ // World / view / projection
+ gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
+
+ // this will be normalized in the frag shader...
+ view_dir = position.xyz - camPosLocal.xyz;
+}
+
diff --git a/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl b/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl
new file mode 100644
index 0000000000..8a8e4cb0f6
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl
@@ -0,0 +1,53 @@
+/**
+ * @file transportF.glsl
+ *
+ * $LicenseInfo:firstyear=2007&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2007, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+//////////////////////////////////////////////////////////
+// The fragment shader for the terrain atmospherics
+//////////////////////////////////////////////////////////
+
+vec3 getAdditiveColor();
+vec3 getAtmosAttenuation();
+
+uniform sampler2D cloudMap;
+uniform vec4 cloud_pos_density1;
+
+vec3 atmosTransport(vec3 light) {
+ light *= getAtmosAttenuation().r;
+ light += getAdditiveColor() * 2.0;
+ return light;
+}
+
+vec3 fullbrightAtmosTransport(vec3 light) {
+ float brightness = dot(light.rgb, vec3(0.33333));
+
+ return mix(atmosTransport(light.rgb), light.rgb + getAdditiveColor().rgb, brightness * brightness);
+}
+
+vec3 fullbrightShinyAtmosTransport(vec3 light) {
+ float brightness = dot(light.rgb, vec3(0.33333));
+
+ return mix(atmosTransport(light.rgb), (light.rgb + getAdditiveColor().rgb) * (2.0 - brightness), brightness * brightness);
+}
+
diff --git a/indra/newview/app_settings/windlight/skies/A%2D12AM.xml b/indra/newview/app_settings/windlight/skies/A%2D12AM.xml
index 0aba31214a..93ef76d73c 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D12AM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D12AM.xml
@@ -137,5 +137,61 @@
<real>0.65999996662139893</real>
<real>0.2199999988079071</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D12PM.xml b/indra/newview/app_settings/windlight/skies/A%2D12PM.xml
index 119b3e1418..87b2f09e30 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D12PM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D12PM.xml
@@ -137,5 +137,61 @@
<real>0.89999997615814209</real>
<real>0.29999998211860657</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D3AM.xml b/indra/newview/app_settings/windlight/skies/A%2D3AM.xml
index f790d3d961..cf1ce5faf2 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D3AM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D3AM.xml
@@ -137,5 +137,61 @@
<real>1.1399999856948853</real>
<real>0.37999999523162842</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D3PM.xml b/indra/newview/app_settings/windlight/skies/A%2D3PM.xml
index ec9706773e..3d94ea0d38 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D3PM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D3PM.xml
@@ -137,5 +137,61 @@
<real>0.89999997615813498</real>
<real>0.29999998211860301</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D6AM.xml b/indra/newview/app_settings/windlight/skies/A%2D6AM.xml
index bbc7aeec59..3932f67f29 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D6AM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D6AM.xml
@@ -137,5 +137,61 @@
<real>2.369999885559082</real>
<real>0.78999996185302734</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D6PM.xml b/indra/newview/app_settings/windlight/skies/A%2D6PM.xml
index ebf08e1a3f..a597a1245a 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D6PM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D6PM.xml
@@ -137,6 +137,62 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D9AM.xml b/indra/newview/app_settings/windlight/skies/A%2D9AM.xml
index 413e3a27d9..76f08de1b5 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D9AM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D9AM.xml
@@ -137,5 +137,61 @@
<real>0.89999995470046912</real>
<real>0.29999997496605069</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/A%2D9PM.xml b/indra/newview/app_settings/windlight/skies/A%2D9PM.xml
index 292f6713b7..771bb564a4 100644
--- a/indra/newview/app_settings/windlight/skies/A%2D9PM.xml
+++ b/indra/newview/app_settings/windlight/skies/A%2D9PM.xml
@@ -137,5 +137,61 @@
<real>0.66003586768772493</real>
<real>0.22001197576412324</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Barcelona.xml b/indra/newview/app_settings/windlight/skies/Barcelona.xml
index ea9cab8fbb..4cc92e9005 100644
--- a/indra/newview/app_settings/windlight/skies/Barcelona.xml
+++ b/indra/newview/app_settings/windlight/skies/Barcelona.xml
@@ -137,5 +137,61 @@
<real>1.1699999570846558</real>
<real>0.38999998569488525</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Blizzard.xml b/indra/newview/app_settings/windlight/skies/Blizzard.xml
index d17d2790a8..84a923d008 100644
--- a/indra/newview/app_settings/windlight/skies/Blizzard.xml
+++ b/indra/newview/app_settings/windlight/skies/Blizzard.xml
@@ -137,5 +137,61 @@
<real>3</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Blue%20Midday.xml b/indra/newview/app_settings/windlight/skies/Blue%20Midday.xml
index 570f059961..8cb31d879a 100644
--- a/indra/newview/app_settings/windlight/skies/Blue%20Midday.xml
+++ b/indra/newview/app_settings/windlight/skies/Blue%20Midday.xml
@@ -137,5 +137,61 @@
<real>1.2300000190734863</real>
<real>0.40999999642372131</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Coastal%20Afternoon.xml b/indra/newview/app_settings/windlight/skies/Coastal%20Afternoon.xml
index 4925b29eea..17f5a60209 100644
--- a/indra/newview/app_settings/windlight/skies/Coastal%20Afternoon.xml
+++ b/indra/newview/app_settings/windlight/skies/Coastal%20Afternoon.xml
@@ -137,5 +137,61 @@
<real>3</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Coastal%20Sunset.xml b/indra/newview/app_settings/windlight/skies/Coastal%20Sunset.xml
index f4736cf4c6..4f80a3366c 100644
--- a/indra/newview/app_settings/windlight/skies/Coastal%20Sunset.xml
+++ b/indra/newview/app_settings/windlight/skies/Coastal%20Sunset.xml
@@ -137,5 +137,61 @@
<real>3</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Default.xml b/indra/newview/app_settings/windlight/skies/Default.xml
index 13a2c75046..381c7fb49d 100644
--- a/indra/newview/app_settings/windlight/skies/Default.xml
+++ b/indra/newview/app_settings/windlight/skies/Default.xml
@@ -137,5 +137,61 @@
<real>0.89999997615814209</real>
<real>0.29999998211860657</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Desert%20Sunset.xml b/indra/newview/app_settings/windlight/skies/Desert%20Sunset.xml
index b2a611163d..39d84a5ced 100644
--- a/indra/newview/app_settings/windlight/skies/Desert%20Sunset.xml
+++ b/indra/newview/app_settings/windlight/skies/Desert%20Sunset.xml
@@ -137,5 +137,61 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Fine%20Day.xml b/indra/newview/app_settings/windlight/skies/Fine%20Day.xml
index e053815be1..b15e7c6236 100644
--- a/indra/newview/app_settings/windlight/skies/Fine%20Day.xml
+++ b/indra/newview/app_settings/windlight/skies/Fine%20Day.xml
@@ -137,5 +137,61 @@
<real>0.59999996423721313</real>
<real>2.25</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Fluffy%20Big%20Clouds.xml b/indra/newview/app_settings/windlight/skies/Fluffy%20Big%20Clouds.xml
index 8576ec125c..95dd872736 100644
--- a/indra/newview/app_settings/windlight/skies/Fluffy%20Big%20Clouds.xml
+++ b/indra/newview/app_settings/windlight/skies/Fluffy%20Big%20Clouds.xml
@@ -137,5 +137,61 @@
<real>1.0199999809265137</real>
<real>1.7999999523162842</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Foggy.xml b/indra/newview/app_settings/windlight/skies/Foggy.xml
index cb7395d589..313c922a4e 100644
--- a/indra/newview/app_settings/windlight/skies/Foggy.xml
+++ b/indra/newview/app_settings/windlight/skies/Foggy.xml
@@ -137,5 +137,61 @@
<real>0.53999996185302734</real>
<real>0.17999999225139618</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Funky%20Funky%20Funky.xml b/indra/newview/app_settings/windlight/skies/Funky%20Funky%20Funky.xml
index 32be0d25e6..f627575d31 100644
--- a/indra/newview/app_settings/windlight/skies/Funky%20Funky%20Funky.xml
+++ b/indra/newview/app_settings/windlight/skies/Funky%20Funky%20Funky.xml
@@ -137,5 +137,61 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Funky%20Funky.xml b/indra/newview/app_settings/windlight/skies/Funky%20Funky.xml
index ae16b2d135..245fec5999 100644
--- a/indra/newview/app_settings/windlight/skies/Funky%20Funky.xml
+++ b/indra/newview/app_settings/windlight/skies/Funky%20Funky.xml
@@ -137,5 +137,61 @@
<real>2.2200000286102295</real>
<real>0.74000000953674316</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Gelatto.xml b/indra/newview/app_settings/windlight/skies/Gelatto.xml
index 66b3d317b8..69f758d4f5 100644
--- a/indra/newview/app_settings/windlight/skies/Gelatto.xml
+++ b/indra/newview/app_settings/windlight/skies/Gelatto.xml
@@ -137,5 +137,61 @@
<real>0.37800011038780212</real>
<real>0.80999994277954102</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Ghost.xml b/indra/newview/app_settings/windlight/skies/Ghost.xml
index 447202ed51..2707cae7f9 100644
--- a/indra/newview/app_settings/windlight/skies/Ghost.xml
+++ b/indra/newview/app_settings/windlight/skies/Ghost.xml
@@ -137,5 +137,61 @@
<real>0.33000001311302185</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Incongruent%20Truths.xml b/indra/newview/app_settings/windlight/skies/Incongruent%20Truths.xml
index 098844e16e..d5f2305e84 100644
--- a/indra/newview/app_settings/windlight/skies/Incongruent%20Truths.xml
+++ b/indra/newview/app_settings/windlight/skies/Incongruent%20Truths.xml
@@ -137,5 +137,61 @@
<real>1.170000433921814</real>
<real>0.75</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midday%201.xml b/indra/newview/app_settings/windlight/skies/Midday%201.xml
index 13a2c75046..381c7fb49d 100644
--- a/indra/newview/app_settings/windlight/skies/Midday%201.xml
+++ b/indra/newview/app_settings/windlight/skies/Midday%201.xml
@@ -137,5 +137,61 @@
<real>0.89999997615814209</real>
<real>0.29999998211860657</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midday%202.xml b/indra/newview/app_settings/windlight/skies/Midday%202.xml
index 04f2ba85ee..91d70c2228 100644
--- a/indra/newview/app_settings/windlight/skies/Midday%202.xml
+++ b/indra/newview/app_settings/windlight/skies/Midday%202.xml
@@ -137,5 +137,61 @@
<real>0.80999994277954102</real>
<real>0.26999998092651367</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midday%203.xml b/indra/newview/app_settings/windlight/skies/Midday%203.xml
index a23dcab60b..816a4da670 100644
--- a/indra/newview/app_settings/windlight/skies/Midday%203.xml
+++ b/indra/newview/app_settings/windlight/skies/Midday%203.xml
@@ -137,5 +137,61 @@
<real>1.2599999904632568</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midday%204.xml b/indra/newview/app_settings/windlight/skies/Midday%204.xml
index 255e314e0f..df64ed371c 100644
--- a/indra/newview/app_settings/windlight/skies/Midday%204.xml
+++ b/indra/newview/app_settings/windlight/skies/Midday%204.xml
@@ -137,5 +137,61 @@
<real>1.2599999904632568</real>
<real>0.41999998688697815</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midday.xml b/indra/newview/app_settings/windlight/skies/Midday.xml
index 119b3e1418..87b2f09e30 100644
--- a/indra/newview/app_settings/windlight/skies/Midday.xml
+++ b/indra/newview/app_settings/windlight/skies/Midday.xml
@@ -137,5 +137,61 @@
<real>0.89999997615814209</real>
<real>0.29999998211860657</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Midnight.xml b/indra/newview/app_settings/windlight/skies/Midnight.xml
index 0aba31214a..00cfc64420 100644
--- a/indra/newview/app_settings/windlight/skies/Midnight.xml
+++ b/indra/newview/app_settings/windlight/skies/Midnight.xml
@@ -137,5 +137,61 @@
<real>0.65999996662139893</real>
<real>0.2199999988079071</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Night.xml b/indra/newview/app_settings/windlight/skies/Night.xml
index c4938949ce..c56177e821 100644
--- a/indra/newview/app_settings/windlight/skies/Night.xml
+++ b/indra/newview/app_settings/windlight/skies/Night.xml
@@ -137,5 +137,61 @@
<real>0.65999994893325931</real>
<real>0.22000000284673543</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Pirate.xml b/indra/newview/app_settings/windlight/skies/Pirate.xml
index dcb9c27ba4..1f5c18dd65 100644
--- a/indra/newview/app_settings/windlight/skies/Pirate.xml
+++ b/indra/newview/app_settings/windlight/skies/Pirate.xml
@@ -137,5 +137,61 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Purple.xml b/indra/newview/app_settings/windlight/skies/Purple.xml
index 0e9ac3f36e..3d937660ad 100644
--- a/indra/newview/app_settings/windlight/skies/Purple.xml
+++ b/indra/newview/app_settings/windlight/skies/Purple.xml
@@ -137,5 +137,61 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Sailor%27s%20Delight.xml b/indra/newview/app_settings/windlight/skies/Sailor%27s%20Delight.xml
index 70df6b0e60..b3a631f482 100644
--- a/indra/newview/app_settings/windlight/skies/Sailor%27s%20Delight.xml
+++ b/indra/newview/app_settings/windlight/skies/Sailor%27s%20Delight.xml
@@ -137,5 +137,61 @@
<real>1.0777359008789062</real>
<real>0.56000000238418579</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Sheer%20Surreality.xml b/indra/newview/app_settings/windlight/skies/Sheer%20Surreality.xml
index 4c44a1bdb2..252ba58a9a 100644
--- a/indra/newview/app_settings/windlight/skies/Sheer%20Surreality.xml
+++ b/indra/newview/app_settings/windlight/skies/Sheer%20Surreality.xml
@@ -137,5 +137,61 @@
<real>0.53999996185302734</real>
<real>1.5899999141693115</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Sunrise.xml b/indra/newview/app_settings/windlight/skies/Sunrise.xml
index bbc7aeec59..3932f67f29 100644
--- a/indra/newview/app_settings/windlight/skies/Sunrise.xml
+++ b/indra/newview/app_settings/windlight/skies/Sunrise.xml
@@ -137,5 +137,61 @@
<real>2.369999885559082</real>
<real>0.78999996185302734</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>
diff --git a/indra/newview/app_settings/windlight/skies/Sunset.xml b/indra/newview/app_settings/windlight/skies/Sunset.xml
index ebf08e1a3f..a597a1245a 100644
--- a/indra/newview/app_settings/windlight/skies/Sunset.xml
+++ b/indra/newview/app_settings/windlight/skies/Sunset.xml
@@ -137,6 +137,62 @@
<real>2.8385701179504395</real>
<real>1</real>
</array>
+ <key>planet_radius</key>
+ <real>6360.0</real>
+ <key>sky_min_radius</key>
+ <real>6360.0</real>
+ <key>sky_max_radius</key>
+ <real>6420.0</real>
+ <key>rayleigh_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>absorption_config</key>
+ <map>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
+ <key>mie_config</key>
+ <map>
+ <key>anisotropy</key>
+ <real>0.5f</real>
+ <key>density</key>
+ <map>
+ <key>width</key>
+ <real>0.0</real>
+ <key>exp_term</key>
+ <real>1.0</real>
+ <key>exp_scale</key>
+ <real>-0.00001</real>
+ <key>linear_term</key>
+ <real>0.0</real>
+ <key>constant_term</key>
+ <real>1.0</real>
+ </map>
+ </map>
</map>
</llsd>