diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/skyV.glsl | 4 | ||||
-rw-r--r-- | indra/newview/lldrawpoolwlsky.cpp | 19 | ||||
-rw-r--r-- | indra/newview/llenvironment.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llpaneleditsky.cpp | 3 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/panel_settings_sky_density.xml | 73 |
5 files changed, 47 insertions, 56 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl index 90217aed02..89873e83ca 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl @@ -36,8 +36,8 @@ VARYING vec2 vary_frag; void main() { - // pass through untransformed fullscreen pos (clipspace) - gl_Position = vec4(position.xyz, 1.0); + // pass through untransformed fullscreen pos at back of frustum for proper sky depth testing + gl_Position = vec4(position.xy, 0.99f, 1.0); vary_frag = texcoord0; } diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp index 3b3d67243a..41bf024942 100644 --- a/indra/newview/lldrawpoolwlsky.cpp +++ b/indra/newview/lldrawpoolwlsky.cpp @@ -505,22 +505,19 @@ void LLDrawPoolWLSky::renderDeferred(S32 pass) if (gPipeline.canUseWindLightShaders()) { + if (gPipeline.useAdvancedAtmospherics()) + { + renderSkyHazeDeferred(origin, camHeightLocal); + renderHeavenlyBodies(); + } + else { // Disable depth-test for sky, but re-enable depth writes for the cloud // rendering below so the cloud shader can write out depth for the stars to test against LLGLDepthTest depth(GL_TRUE, GL_FALSE); - if (gPipeline.useAdvancedAtmospherics()) - { - renderSkyHazeDeferred(origin, camHeightLocal); - } - else - { - renderSkyHaze(origin, camHeightLocal); - - } - renderHeavenlyBodies(); + renderSkyHaze(origin, camHeightLocal); + renderHeavenlyBodies(); } - renderSkyClouds(origin, camHeightLocal); } gGL.setColorMask(true, true); diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index e437003520..4b60ed4e68 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -358,6 +358,7 @@ void LLEnvironment::getAtmosphericModelSettings(AtmosphericModelSettings& settin layer.width = layerConfig[LLSettingsSky::SETTING_DENSITY_PROFILE_WIDTH].asReal(); settingsOut.m_mieProfile.push_back(layer); } + settingsOut.m_mieAnisotropy = psky->getMieAnisotropy(); LLSD absorption = psky->getAbsorptionConfigs(); settingsOut.m_absorptionProfile.clear(); @@ -1633,15 +1634,12 @@ void LLEnvironment::DayInstance::setSky(const LLSettingsSky::ptr_t &psky) mSky->update(); mBlenderSky.reset(); -#if 0 if (gAtmosphere) { AtmosphericModelSettings settings; LLEnvironment::getAtmosphericModelSettings(settings, psky); gAtmosphere->configureAtmosphericModel(settings); } -#endif - } void LLEnvironment::DayInstance::setWater(const LLSettingsWater::ptr_t &pwater) diff --git a/indra/newview/llpaneleditsky.cpp b/indra/newview/llpaneleditsky.cpp index a13efbc54b..1b41529795 100644 --- a/indra/newview/llpaneleditsky.cpp +++ b/indra/newview/llpaneleditsky.cpp @@ -662,15 +662,12 @@ void LLPanelSettingsSkyDensityTab::updateProfile() mSkySettings->update(); setIsDirty(); -/* if (gAtmosphere) { AtmosphericModelSettings atmospheric_settings; LLEnvironment::getAtmosphericModelSettings(atmospheric_settings, mSkySettings); gAtmosphere->configureAtmosphericModel(atmospheric_settings); } -*/ - } void LLPanelSettingsSkyDensityTab::onRayleighExponentialChanged() diff --git a/indra/newview/skins/default/xui/en/panel_settings_sky_density.xml b/indra/newview/skins/default/xui/en/panel_settings_sky_density.xml index 50663e94f6..e071b30c80 100644 --- a/indra/newview/skins/default/xui/en/panel_settings_sky_density.xml +++ b/indra/newview/skins/default/xui/en/panel_settings_sky_density.xml @@ -24,10 +24,10 @@ visible="true" height="14"> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" left_delta="5" @@ -40,38 +40,38 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.000001" initial_value="0" layout="topleft" - min_val="-1" - max_val="1" + min_val="-0.01" + max_val="0.01" name="rayleigh_exponential_scale" label="Rayleigh Exponential Scale:" width="400" label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.000001" initial_value="0" layout="topleft" min_val="0" - max_val="1" + max_val="0.00001" name="rayleigh_linear" label="Rayleigh Linear Term:" width="400" label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" min_val="0" @@ -82,10 +82,9 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="1" follows="left|top" height="14" - increment="1" initial_value="0" layout="topleft" min_val="1000" @@ -104,10 +103,10 @@ visible="true" height="16"> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" left_delta="5" @@ -120,42 +119,42 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" - min_val="-1" - max_val="1" + min_val="-0.01" + max_val="0.01" name="mie_exponential_scale" label="Mie Exponential Scale:" width="400" label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.000001" initial_value="0" layout="topleft" min_val="0" - max_val="3.0" + max_val="0.000004" name="mie_linear" label="Mie Linear Term:" width="400" label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" min_val="0" - max_val="10" + max_val="1" name="mie_constant" label="Mie Constant Term:" width="400" @@ -176,10 +175,10 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="1" follows="left|top" height="14" - increment="1" + increment="0.1" initial_value="0" layout="topleft" min_val="1000" @@ -198,10 +197,10 @@ visible="true" height="14"> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" left_delta="5" @@ -214,10 +213,10 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" min_val="-1" @@ -228,10 +227,10 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" min_val="0" @@ -242,10 +241,10 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="6" follows="left|top" height="14" - increment="0.01" + increment="0.0000001" initial_value="0" layout="topleft" min_val="0" @@ -256,10 +255,10 @@ label_width="160" can_edit_text="true"/> <slider - decimal_digits="2" + decimal_digits="1" follows="left|top" height="14" - increment="1" + increment="0.1" initial_value="0" layout="topleft" min_val="1000" |