diff options
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 075ae2f5357..8ee99544ca5 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1092,26 +1092,6 @@ static float noise3_perlin(float vec[3]) #undef SURVE } -#if 0 -static float turbulence_perlin(const float point[3], float lofreq, float hifreq) -{ - float freq, t, p[3]; - - p[0] = point[0] + 123.456; - p[1] = point[1]; - p[2] = point[2]; - - t = 0; - for (freq = lofreq; freq < hifreq; freq *= 2.0) { - t += fabsf(noise3_perlin(p)) / freq; - p[0] *= 2.0f; - p[1] *= 2.0f; - p[2] *= 2.0f; - } - return t - 0.3; /* readjust to make mean value = 0.0 */ -} -#endif - /* for use with BLI_gNoise/gTurbulence, returns signed noise */ static float orgPerlinNoise(float x, float y, float z) { @@ -1147,19 +1127,6 @@ float BLI_hnoisep(float noisesize, float x, float y, float z) return noise3_perlin(vec); } -#if 0 -static float turbulencep(float noisesize, float x, float y, float z, int nr) -{ - float vec[3]; - - vec[0] = x / noisesize; - vec[1] = y / noisesize; - vec[2] = z / noisesize; - nr++; - return turbulence_perlin(vec, 1.0, (float)(1 << nr)); -} -#endif - /******************/ /* VORONOI/WORLEY */ /******************/ |