summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-10-18 22:30:50 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-10-18 22:58:09 +0300
commitb2bb4d25cc5bcfa3fbe94f145b21e422ee55ba49 (patch)
treea05742ea8374bbcb9a67ce07fb1a5e169e9800da /indra/llinventory
parentbd19bbf651d5a2b83e367d1f50a3d8eb00d5fbbd (diff)
viewer#2889 Fixed mixed up water settings
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llsettingswater.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/llinventory/llsettingswater.cpp b/indra/llinventory/llsettingswater.cpp
index 08e18ea26e..b30dbfeac2 100644
--- a/indra/llinventory/llsettingswater.cpp
+++ b/indra/llinventory/llsettingswater.cpp
@@ -239,15 +239,15 @@ void LLSettingsWater::blend(LLSettingsBase::ptr_t &end, F64 blendf)
{
mSettingFlags |= other->mSettingFlags;
- mBlurMultiplier = lerp((F32)blendf, mBlurMultiplier, other->mBlurMultiplier);
+ mBlurMultiplier = lerp(mBlurMultiplier, other->mBlurMultiplier, (F32)blendf);
lerpColor(mWaterFogColor, other->mWaterFogColor, (F32)blendf);
- mWaterFogDensity = lerp((F32)blendf, mWaterFogDensity, other->mWaterFogDensity);
- mFogMod = lerp((F32)blendf, mFogMod, other->mFogMod);
- mFresnelOffset = lerp((F32)blendf, mFresnelOffset, other->mFresnelOffset);
- mFresnelScale = lerp((F32)blendf, mFresnelScale, other->mFresnelScale);
+ mWaterFogDensity = lerp(mWaterFogDensity, other->mWaterFogDensity, (F32)blendf);
+ mFogMod = lerp(mFogMod, other->mFogMod, (F32)blendf);
+ mFresnelOffset = lerp(mFresnelOffset, other->mFresnelOffset, (F32)blendf);
+ mFresnelScale = lerp(mFresnelScale, other->mFresnelScale, (F32)blendf);
lerpVector3(mNormalScale, other->mNormalScale, (F32)blendf);
- mScaleAbove = lerp((F32)blendf, mScaleAbove, other->mScaleAbove);
- mScaleBelow = lerp((F32)blendf, mScaleBelow, other->mScaleBelow);
+ mScaleAbove = lerp(mScaleAbove, other->mScaleAbove, (F32)blendf);
+ mScaleBelow = lerp(mScaleBelow, other->mScaleBelow, (F32)blendf);
lerpVector2(mWave1Dir, other->mWave1Dir, (F32)blendf);
lerpVector2(mWave2Dir, other->mWave2Dir, (F32)blendf);