diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-28 06:04:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-28 06:04:40 +0400 |
commit | 4684df08304135fdd2cbe1dc22d2658b24f83d1f (patch) | |
tree | d718ab860868020826d5e0c6d6a72b53fedaefb1 /source/blender/blenlib | |
parent | 752cb7485de8d06b261084eac3ab1c259a20ead3 (diff) |
fix [#28388] Clouds at high depth give artifacts.
http://projects.blender.org/tracker/download.php/9/498/28388/17476/screen_bad.png
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 5d80edebbef..40289090a28 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -920,7 +920,7 @@ static float g[512+2][3]= { t = vec[i] + 10000.; \ b0 = ((int)t) & 255; \ b1 = (b0+1) & 255; \ - r0 = t - (int)t; \ + r0 = t - floorf(t); \ r1 = r0 - 1.; |