diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-24 02:45:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-24 02:45:39 +0400 |
commit | 57b488574a0720eb749e9daa16df1979db9bbe6f (patch) | |
tree | e176e64a2f9a2ffd0ff0a5c3cadb7186f81908ea /source/blender/blenlib/intern | |
parent | 5b8cbbe3fd3cbc8a9f828fbc3fa5269bba25957e (diff) |
style cleanup: comma placement
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index f591dc17f5b..cad4addc87b 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -302,14 +302,14 @@ static float newPerlin(float x, float y, float z) w = npfade(z); A = hash[X ]+Y; AA = hash[A]+Z; AB = hash[A+1]+Z; // HASH COORDINATES OF B = hash[X+1]+Y; BA = hash[B]+Z; BB = hash[B+1]+Z; // THE 8 CUBE CORNERS, - return lerp(w, lerp(v, lerp(u, grad(hash[AA ], x , y , z ), // AND ADD - grad(hash[BA ], x-1, y , z )), // BLENDED - lerp(u, grad(hash[AB ], x , y-1, z ), // RESULTS - grad(hash[BB ], x-1, y-1, z ))),// FROM 8 - lerp(v, lerp(u, grad(hash[AA+1], x , y , z-1 ), // CORNERS - grad(hash[BA+1], x-1, y , z-1 )), // OF CUBE - lerp(u, grad(hash[AB+1], x , y-1, z-1 ), - grad(hash[BB+1], x-1, y-1, z-1 )))); + return lerp(w, lerp(v, lerp(u, grad(hash[AA ], x, y, z ), // AND ADD + grad(hash[BA ], x - 1, y, z )), // BLENDED + lerp(u, grad(hash[AB ], x, y - 1, z ), // RESULTS + grad(hash[BB ], x - 1, y - 1, z ))), // FROM 8 + lerp(v, lerp(u, grad(hash[AA + 1], x, y, z - 1), // CORNERS + grad(hash[BA + 1], x - 1, y, z - 1)), // OF CUBE + lerp(u, grad(hash[AB + 1], x, y - 1, z - 1), + grad(hash[BB + 1], x - 1, y - 1, z - 1)))); } /* for use with BLI_gNoise()/BLI_gTurbulence(), returns unsigned improved perlin noise */ |