diff options
author | Mattes D <github@xoft.cz> | 2014-11-09 15:33:01 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-09 15:33:01 +0100 |
commit | 5993c06bd7ab5f02aabb4790570c86699189e219 (patch) | |
tree | f14b1b648b90dd961a5ae7afb55cc5fbfd4a31a8 /src/Generating/Noise3DGenerator.cpp | |
parent | Noise3D generator: rewritten from scratch. (diff) | |
download | cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.gz cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.bz2 cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.lz cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.xz cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.tar.zst cuberite-5993c06bd7ab5f02aabb4790570c86699189e219.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/Noise3DGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/Noise3DGenerator.cpp b/src/Generating/Noise3DGenerator.cpp index 4292c66e5..885a9bab3 100644 --- a/src/Generating/Noise3DGenerator.cpp +++ b/src/Generating/Noise3DGenerator.cpp @@ -83,7 +83,7 @@ inline static NOISE_DATATYPE ClampedLerp(NOISE_DATATYPE a_Val1, NOISE_DATATYPE a { return a_Val2; } - return a_Val1 + (a_Val2 - a_Val1) * a_Ratio; + return Lerp(a_Val1, a_Val2, a_Ratio); } |