summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-08 16:49:19 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-08 16:49:19 +0200
commit1ef8d61f36d78dbe87eddb8554f23d99d42e084b (patch)
tree9ff7a75f2af4b54e79b299d70a43debcb58546ec /src/render/WaterLevel.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
parentFix water UV on high FPS and inverted free camera (diff)
downloadre3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar.gz
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar.bz2
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar.lz
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar.xz
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.tar.zst
re3-1ef8d61f36d78dbe87eddb8554f23d99d42e084b.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 7e26654c..66debd68 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -349,8 +349,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 )