diff options
author | Robert Guetzkow <gitcommit@outlook.de> | 2021-02-02 22:42:54 +0300 |
---|---|---|
committer | Robert Guetzkow <gitcommit@outlook.de> | 2021-02-02 22:42:54 +0300 |
commit | 64a963486f7b20f8db480be9cb894eb28e79ac57 (patch) | |
tree | dca350ffc04ff54e95901df6282ac2bf1bae0978 /source/blender/blenlib/intern | |
parent | f2781e1c7c82294c0dbf5d31160313c95ff4ad94 (diff) | |
parent | 4a80c0e27519b63929aa48b6fb1d673666829b21 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 4ba533c72aa..b770a267eee 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1636,9 +1636,9 @@ float BLI_noise_mg_ridged_multi_fractal(float x, float signal = powf(offset - fabsf(noisefunc(x, y, z)), 2); float result = signal; + float pwHL = powf(lacunarity, -H); + float pwr = pwHL; /* starts with i=1 instead of 0 */ for (int i = 1; i < (int)octaves; i++) { - float pwHL = powf(lacunarity, -H); - float pwr = pwHL; /* starts with i=1 instead of 0 */ x *= lacunarity; y *= lacunarity; z *= lacunarity; |