diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-08 16:49:19 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-08 16:49:19 +0200 |
commit | 1ef8d61f36d78dbe87eddb8554f23d99d42e084b (patch) | |
tree | 9ff7a75f2af4b54e79b299d70a43debcb58546ec /src/render/WaterLevel.cpp | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
parent | Fix water UV on high FPS and inverted free camera (diff) | |
download | re3-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.cpp | 5 |
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 ) |