diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 02:38:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 04:32:54 +0300 |
commit | 155f42a12f45094e248d0f1e2a1dbd4ed6be8e85 (patch) | |
tree | a814d39d4f3f69fd2ff8ad2fc3c8dd34dfd8c4db /source/blender/blenlib/intern/noise.c | |
parent | 548b3516479b478653b4eb074bbdcea535c4071f (diff) |
Cleanup: remove unused BLI_turbulence1
A slightly modified version of BLI_turbulence1, unused for years.
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 82ceb36c0e1..889e336bb52 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -454,23 +454,6 @@ float BLI_turbulence(float noisesize, float x, float y, float z, int nr) return s / div; } -float BLI_turbulence1(float noisesize, float x, float y, float z, int nr) -{ - float s, d = 0.5, div = 1.0; - - s = fabsf((-1.0f + 2.0f * BLI_hnoise(noisesize, x, y, z))); - - while (nr > 0) { - - s += fabsf(d * (-1.0f + 2.0f * BLI_hnoise(noisesize * d, x, y, z))); - div += d; - d *= 0.5f; - - nr--; - } - return s / div; -} - /* ********************* FROM PERLIN HIMSELF: ******************** */ static const char g_perlin_data_ub[512 + 2] = { |