From bb99e50b2617a67fe65a92338363c76ec400f033 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Wed, 18 Mar 2020 23:21:32 -0700 Subject: SL-12574 Add note about duplicated procedurally generated sky texture --- indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl | 4 ++++ indra/newview/app_settings/shaders/class1/deferred/skyV.glsl | 4 ++++ indra/newview/lllegacyatmospherics.cpp | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl b/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl index 8e90c1481f..bc51d25309 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl @@ -67,6 +67,10 @@ uniform vec4 cloud_color; uniform float cloud_scale; +// NOTE: Keep these in sync! +// indra\newview\app_settings\shaders\class1\deferred\skyV.glsl +// indra\newview\app_settings\shaders\class1\deferred\cloudsV.glsl +// indra\newview\lllegacyatmospherics.cpp void main() { diff --git a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl index 2cd660ab79..ead754ec76 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl @@ -57,6 +57,10 @@ uniform float sun_moon_glow_factor; uniform vec4 cloud_color; +// NOTE: Keep these in sync! +// indra\newview\app_settings\shaders\class1\deferred\skyV.glsl +// indra\newview\app_settings\shaders\class1\deferred\cloudsV.glsl +// indra\newview\lllegacyatmospherics.cpp void main() { diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp index 3c675f7c4f..5e3fc8be95 100644 --- a/indra/newview/lllegacyatmospherics.cpp +++ b/indra/newview/lllegacyatmospherics.cpp @@ -265,6 +265,10 @@ LLColor4 LLAtmospherics::calcSkyColorInDir(const LLSettingsSky::ptr_t &psky, Atm return LLColor4(sky_color, 0.0f); } +// NOTE: Keep these in sync! +// indra\newview\app_settings\shaders\class1\deferred\skyV.glsl +// indra\newview\app_settings\shaders\class1\deferred\cloudsV.glsl +// indra\newview\lllegacyatmospherics.cpp void LLAtmospherics::calcSkyColorWLVert(const LLSettingsSky::ptr_t &psky, LLVector3 & Pn, AtmosphericsVars& vars) { LLColor3 blue_density = vars.blue_density; -- cgit v1.2.3 From 03e0549d573a14c32f4fc4a57e007108851e9f1f Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Wed, 18 Mar 2020 23:34:53 -0700 Subject: SL-12574 Fix environmentMap being too dark on EEP --- indra/newview/lllegacyatmospherics.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp index 5e3fc8be95..2bba56f646 100644 --- a/indra/newview/lllegacyatmospherics.cpp +++ b/indra/newview/lllegacyatmospherics.cpp @@ -254,8 +254,7 @@ LLColor4 LLAtmospherics::calcSkyColorInDir(const LLSettingsSky::ptr_t &psky, Atm F32 brightness = vars.hazeColor.brightness(); F32 greyscale_sat = brightness * (1.0f - sky_saturation); LLColor3 sky_color = vars.hazeColor * sky_saturation + smear(greyscale_sat); - //sky_color *= (0.5f + 0.5f * brightness); - sky_color *= (0.85f + 0.15f*brightness); // SL-12574 EEP sky is being attenuated too much; brighten it slightly until calcSkyColorWLVert() is fixed to match Windlight + //sky_color *= (0.5f + 0.5f * brightness); // SL-12574 EEP sky is being attenuated too much return LLColor4(sky_color, 0.0f); } @@ -378,11 +377,15 @@ void LLAtmospherics::calcSkyColorWLVert(const LLSettingsSky::ptr_t &psky, LLVect // Final atmosphere additive componentMultBy(vars.hazeColor, LLColor3::white - temp1); +/* + // SL-12574 + // Attenuate cloud color by atmosphere temp1 = componentSqrt(temp1); //less atmos opacity (more transparency) below clouds // At horizon, blend high altitude sky color towards the darker color below the clouds vars.hazeColor += componentMult(vars.hazeColorBelowCloud - vars.hazeColor, LLColor3::white - componentSqrt(temp1)); +*/ } void LLAtmospherics::updateFog(const F32 distance, const LLVector3& tosun_in) -- cgit v1.2.3 From e466ab255d8bda1d1c5e27dd2291d11d53a50691 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Wed, 18 Mar 2020 23:35:17 -0700 Subject: SL-12574 Cleanup unused final_atten --- indra/newview/lllegacyatmospherics.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp index 2bba56f646..a2acb3efe2 100644 --- a/indra/newview/lllegacyatmospherics.cpp +++ b/indra/newview/lllegacyatmospherics.cpp @@ -369,11 +369,6 @@ void LLAtmospherics::calcSkyColorWLVert(const LLSettingsSky::ptr_t &psky, LLVect // Haze color below cloud vars.hazeColorBelowCloud = (blue_factor * (sunlight + tmpAmbient) + componentMult(haze_factor, sunlight * temp2.mV[0] + tmpAmbient)); - LLColor3 final_atten = LLColor3::white - temp1; - final_atten.mV[0] = llmax(final_atten.mV[0], 0.0f); - final_atten.mV[1] = llmax(final_atten.mV[1], 0.0f); - final_atten.mV[2] = llmax(final_atten.mV[2], 0.0f); - // Final atmosphere additive componentMultBy(vars.hazeColor, LLColor3::white - temp1); -- cgit v1.2.3