Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-28 06:04:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-28 06:04:40 +0400
commit4684df08304135fdd2cbe1dc22d2658b24f83d1f (patch)
treed718ab860868020826d5e0c6d6a72b53fedaefb1 /source/blender/blenlib/intern/noise.c
parent752cb7485de8d06b261084eac3ab1c259a20ead3 (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/intern/noise.c')
-rw-r--r--source/blender/blenlib/intern/noise.c2
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.;