summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-08-27 13:05:04 -0700
committerGraham Linden <graham@lindenlab.com>2019-08-27 13:05:04 -0700
commit24537889fb444315b4074195f25d91919fbea36f (patch)
treea82d4a341aa7f2768cc55255f2154b80a73f061e /indra/newview
parentad26896a1086536cf47d3cb0041b0410aebf2119 (diff)
SL-11550
Restore mul by light_transmittance in CPU version of atmospherics.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lllegacyatmospherics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp
index a1093df7e1..13d5eb96c4 100644
--- a/indra/newview/lllegacyatmospherics.cpp
+++ b/indra/newview/lllegacyatmospherics.cpp
@@ -329,7 +329,7 @@ void LLAtmospherics::calcSkyColorWLVert(LLVector3 & Pn, AtmosphericsVars& vars)
temp2.mV[1] = 1.f / temp2.mV[1];
componentMultBy(sunlight, componentExp((light_atten * -1.f) * temp2.mV[1]));
- //componentMultBy(sunlight, light_transmittance);
+ componentMultBy(sunlight, light_transmittance);
// Distance
temp2.mV[2] = Plen * density_multiplier;
@@ -445,8 +445,8 @@ void LLAtmospherics::updateFog(const F32 distance, const LLVector3& tosun_in)
vars.distance_multiplier = psky->getDistanceMultiplier();
vars.max_y = psky->getMaxY();
vars.sun_norm = LLEnvironment::instance().getSunDirectionCFR();
- vars.sunlight = psky->getSunlightColorClamped();
- vars.ambient = psky->getAmbientColorClamped();
+ vars.sunlight = psky->getSunlightColor();
+ vars.ambient = psky->getAmbientColor();
vars.glow = psky->getGlow();
vars.cloud_shadow = psky->getCloudShadow();
vars.dome_radius = psky->getDomeRadius();