DRTVWR-559 Make cloud pattern deterministic when cloud scroll is zero.
parent
17615dd6b6
commit
086da3d6f8
|
|
@ -265,6 +265,11 @@ void LLDrawPoolWLSky::renderSkyCloudsDeferred(const LLVector3& camPosLocal, F32
|
|||
F32 cloud_variance = psky ? psky->getCloudVariance() : 0.0f;
|
||||
F32 blend_factor = psky ? psky->getBlendFactor() : 0.0f;
|
||||
|
||||
if (psky->getCloudScrollRate().isExactlyZero())
|
||||
{
|
||||
blend_factor = 0.f;
|
||||
}
|
||||
|
||||
// if we even have sun disc textures to work with...
|
||||
if (cloud_noise || cloud_noise_next)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1687,8 +1687,16 @@ void LLEnvironment::updateCloudScroll()
|
|||
|
||||
if (mCurrentEnvironment->getSky() && !mCloudScrollPaused)
|
||||
{
|
||||
LLVector2 cloud_delta = static_cast<F32>(delta_t)* (mCurrentEnvironment->getSky()->getCloudScrollRate()) / 100.0;
|
||||
mCloudScrollDelta += cloud_delta;
|
||||
LLVector2 rate = mCurrentEnvironment->getSky()->getCloudScrollRate();
|
||||
if (rate.isExactlyZero())
|
||||
{
|
||||
mCloudScrollDelta.setZero();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLVector2 cloud_delta = static_cast<F32>(delta_t) * (mCurrentEnvironment->getSky()->getCloudScrollRate()) / 100.0;
|
||||
mCloudScrollDelta += cloud_delta;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue