From 1b4814f0e5784b3c339328cccde070dc7c20606b Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 28 Nov 2024 20:19:51 +0200 Subject: viewer#3170 Fix tonemaping slider At the moment slider is in general settings, not per environment --- indra/llinventory/llsettingssky.cpp | 9 --------- indra/llinventory/llsettingssky.h | 2 -- 2 files changed, 11 deletions(-) (limited to 'indra/llinventory') diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index f773b64bde..17d259a163 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -1180,7 +1180,6 @@ void LLSettingsSky::loadValuesFromLLSD() mHDRMax = 2.0f; mHDRMin = 0.5f; mHDROffset = 1.0f; - mTonemapMix = 1.0f; mSunTextureId = settings[SETTING_SUN_TEXTUREID].asUUID(); mMoonTextureId = settings[SETTING_MOON_TEXTUREID].asUUID(); @@ -2056,14 +2055,6 @@ F32 LLSettingsSky::getHDROffset() const return mHDROffset; } -F32 LLSettingsSky::getTonemapMix() const -{ - if (mCanAutoAdjust) - return 0.0f; - - return mTonemapMix; -} - void LLSettingsSky::setGamma(F32 val) { mGamma = val; diff --git a/indra/llinventory/llsettingssky.h b/indra/llinventory/llsettingssky.h index 8d73c35ff3..f61f8af116 100644 --- a/indra/llinventory/llsettingssky.h +++ b/indra/llinventory/llsettingssky.h @@ -212,7 +212,6 @@ public: F32 getHDRMin() const; F32 getHDRMax() const; F32 getHDROffset() const; - F32 getTonemapMix() const; void setGamma(F32 val); @@ -385,7 +384,6 @@ protected: F32 mCloudVariance; F32 mCloudShadow; F32 mCloudScale; - F32 mTonemapMix; F32 mHDROffset; F32 mHDRMax; F32 mHDRMin; -- cgit v1.2.3