Fix uninitialized value
Own mistake in rB74188e65028d268af887ab2140e4253087410c1e
This commit is contained in:
parent
d9e7a42640
commit
9a7da1242d
|
@ -1263,7 +1263,7 @@ float BLI_noise_generic_turbulence(
|
||||||
z *= noisesize;
|
z *= noisesize;
|
||||||
}
|
}
|
||||||
|
|
||||||
float sum = 0, amp, fscale = 1;
|
float sum = 0, amp = 1, fscale = 1;
|
||||||
for (int i = 0; i <= oct; i++, amp *= 0.5f, fscale *= 2.0f) {
|
for (int i = 0; i <= oct; i++, amp *= 0.5f, fscale *= 2.0f) {
|
||||||
float t = noisefunc(fscale * x, fscale * y, fscale * z);
|
float t = noisefunc(fscale * x, fscale * y, fscale * z);
|
||||||
if (hard) {
|
if (hard) {
|
||||||
|
|
Loading…
Reference in New Issue