summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-08 20:58:48 +0200
committeraap <aap@papnet.eu>2020-05-08 20:58:48 +0200
commit10cade9f60e5648be7473effd46993bcdac3afb8 (patch)
tree17e2915c527bd5049de48e196e11076a16638b27 /src/render/WaterLevel.cpp
parentmore small fixes (diff)
parentFix water UV on high FPS and inverted free camera (diff)
downloadre3-10cade9f60e5648be7473effd46993bcdac3afb8.tar
re3-10cade9f60e5648be7473effd46993bcdac3afb8.tar.gz
re3-10cade9f60e5648be7473effd46993bcdac3afb8.tar.bz2
re3-10cade9f60e5648be7473effd46993bcdac3afb8.tar.lz
re3-10cade9f60e5648be7473effd46993bcdac3afb8.tar.xz
re3-10cade9f60e5648be7473effd46993bcdac3afb8.tar.zst
re3-10cade9f60e5648be7473effd46993bcdac3afb8.zip
Diffstat (limited to 'src/render/WaterLevel.cpp')
-rw-r--r--src/render/WaterLevel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index d7035ab1..e8e79f96 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -351,8 +351,13 @@ CWaterLevel::RenderWater()
if ( !CTimer::GetIsPaused() )
{
+#ifdef FIX_BUGS
+ TEXTURE_ADDU += (CGeneral::GetRandomNumberInRange(-0.0005f, 0.0005f) + windAddUV) * CTimer::GetTimeStepFix();
+ TEXTURE_ADDV += (CGeneral::GetRandomNumberInRange(-0.0005f, 0.0005f) + windAddUV) * CTimer::GetTimeStepFix();
+#else
TEXTURE_ADDU += CGeneral::GetRandomNumberInRange(-0.0005f, 0.0005f) + windAddUV;
TEXTURE_ADDV += CGeneral::GetRandomNumberInRange(-0.0005f, 0.0005f) + windAddUV;
+#endif
}
if ( TEXTURE_ADDU >= 1.0f )