diff options
| author | Ptolemy <ptolemy@lindenlab.com> | 2020-03-18 23:34:53 -0700 | 
|---|---|---|
| committer | Ptolemy <ptolemy@lindenlab.com> | 2020-03-18 23:37:47 -0700 | 
| commit | 03e0549d573a14c32f4fc4a57e007108851e9f1f (patch) | |
| tree | 5765fc60f2712122750251ae607b647114283a07 /indra/newview | |
| parent | bb99e50b2617a67fe65a92338363c76ec400f033 (diff) | |
SL-12574 Fix environmentMap being too dark on EEP
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lllegacyatmospherics.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| 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) | 
