diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-10-24 21:28:44 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-10-24 21:28:44 +0200 |
commit | d1394c69946032f40109bc12ece5549a93dfde79 (patch) | |
tree | c2ad63ce48e50804c6cc95bed27a5a3da2c79c68 | |
parent | Model indices edits (diff) | |
download | re3-d1394c69946032f40109bc12ece5549a93dfde79.tar re3-d1394c69946032f40109bc12ece5549a93dfde79.tar.gz re3-d1394c69946032f40109bc12ece5549a93dfde79.tar.bz2 re3-d1394c69946032f40109bc12ece5549a93dfde79.tar.lz re3-d1394c69946032f40109bc12ece5549a93dfde79.tar.xz re3-d1394c69946032f40109bc12ece5549a93dfde79.tar.zst re3-d1394c69946032f40109bc12ece5549a93dfde79.zip |
-rw-r--r-- | src/render/WindModifiers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/WindModifiers.cpp b/src/render/WindModifiers.cpp index 2061df6a..b72e362e 100644 --- a/src/render/WindModifiers.cpp +++ b/src/render/WindModifiers.cpp @@ -33,7 +33,7 @@ CWindModifiers::FindWindModifier(CVector pos, float *x, float *y) float dist = (pos - Array[i].m_pos).Magnitude(); if (dist < MAX_FADE_DIST) { float distFade = dist < MIN_FADE_DIST ? 1.0f : 1.0f - (dist - MIN_FADE_DIST) / (MAX_FADE_DIST - MIN_FADE_DIST); - float heightFade = 1.0f - zDist / MAX_HEIGHT_DIST; + float heightFade = distFade * ((1.0f - zDist / MAX_HEIGHT_DIST) / 2.0f); dir = (pos - Array[i].m_pos) * heightFade / dist; bWasWindModifierFound = true; } |