mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Don't update ripples when they are not used
This commit is contained in:
parent
9809748eba
commit
0eb949c8a7
@ -384,11 +384,12 @@ void Water::update(float dt, Ogre::Vector3 player)
|
||||
|
||||
void Water::frameStarted(float dt)
|
||||
{
|
||||
mSimulation->update(dt, mPlayer);
|
||||
|
||||
if (mReflection)
|
||||
{
|
||||
mSimulation->update(dt, mPlayer);
|
||||
mReflection->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Water::applyRTT()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user