diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-01-02 17:31:23 +0200 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-01-02 20:55:17 +0200 | 
| commit | a27515748fd1fd14a12ffc7f12b415decf6099de (patch) | |
| tree | c841cdd4d3aa40b3520ebb37e0d94fbf792f4530 /indra/llinventory | |
| parent | c88a7d1d274b090f5ca7484a8b1f3ccc36aa1980 (diff) | |
#3311 RenderSkyAutoAdjustLegacy does not engage tonemapper
Diffstat (limited to 'indra/llinventory')
| -rw-r--r-- | indra/llinventory/llsettingssky.cpp | 22 | ||||
| -rw-r--r-- | indra/llinventory/llsettingssky.h | 8 | 
2 files changed, 15 insertions, 15 deletions
| diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index 50b458de14..be64578d54 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -2032,43 +2032,43 @@ F32 LLSettingsSky::getGamma() const      return mGamma;  } -F32 LLSettingsSky::getHDRMin() const +F32 LLSettingsSky::getHDRMin(bool auto_adjust) const  { -    if (mCanAutoAdjust) +    if (mCanAutoAdjust && !auto_adjust)          return 0.f;      return mHDRMin;  } -F32 LLSettingsSky::getHDRMax() const +F32 LLSettingsSky::getHDRMax(bool auto_adjust) const  { -    if (mCanAutoAdjust) +    if (mCanAutoAdjust && !auto_adjust)          return 0.f;      return mHDRMax;  } -F32 LLSettingsSky::getHDROffset() const +F32 LLSettingsSky::getHDROffset(bool auto_adjust) const  { -    if (mCanAutoAdjust) +    if (mCanAutoAdjust && !auto_adjust)          return 1.0f;      return mHDROffset;  } -F32 LLSettingsSky::getTonemapMix() const +F32 LLSettingsSky::getTonemapMix(bool auto_adjust) const  { -    if (mCanAutoAdjust) +    if (mCanAutoAdjust && !auto_adjust) +    { +        // legacy settings do not support tonemaping          return 0.0f; +    }      return mTonemapMix;  }  void LLSettingsSky::setTonemapMix(F32 mix)  { -    if (mCanAutoAdjust) -        return; -      mTonemapMix = mix;  } diff --git a/indra/llinventory/llsettingssky.h b/indra/llinventory/llsettingssky.h index 4c635fd946..801fafff4b 100644 --- a/indra/llinventory/llsettingssky.h +++ b/indra/llinventory/llsettingssky.h @@ -209,10 +209,10 @@ public:      F32 getGamma() const; -    F32 getHDRMin() const; -    F32 getHDRMax() const; -    F32 getHDROffset() const; -    F32 getTonemapMix() const; +    F32 getHDRMin(bool auto_adjust = false) const; +    F32 getHDRMax(bool auto_adjust = false) const; +    F32 getHDROffset(bool auto_adjust = false) const; +    F32 getTonemapMix(bool auto_adjust = false) const;      void setTonemapMix(F32 mix);      void setGamma(F32 val); | 
