diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-06 08:56:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-06 08:56:41 +0300 |
commit | c454d816a936e509aa3daaa27bd92037cfe6de0e (patch) | |
tree | ba60eb092d12f456f5591966a2d49dc210309de7 /source/blender/blenlib/intern/noise.c | |
parent | c82efd3276b2f377bc9420eb7fb75d20d2a7a88a (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 86c24307ae2..83012694ac0 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1395,9 +1395,9 @@ static float voronoi_CrS(float x, float y, float z) static float cellNoiseU(float x, float y, float z) { /* avoid precision issues on unit coordinates */ - x = (x + 0.000001f)*1.00001f; - y = (y + 0.000001f)*1.00001f; - z = (z + 0.000001f)*1.00001f; + x = (x + 0.000001f) * 1.00001f; + y = (y + 0.000001f) * 1.00001f; + z = (z + 0.000001f) * 1.00001f; int xi = (int)(floor(x)); int yi = (int)(floor(y)); @@ -1417,9 +1417,9 @@ float cellNoise(float x, float y, float z) void cellNoiseV(float x, float y, float z, float ca[3]) { /* avoid precision issues on unit coordinates */ - x = (x + 0.000001f)*1.00001f; - y = (y + 0.000001f)*1.00001f; - z = (z + 0.000001f)*1.00001f; + x = (x + 0.000001f) * 1.00001f; + y = (y + 0.000001f) * 1.00001f; + z = (z + 0.000001f) * 1.00001f; int xi = (int)(floor(x)); int yi = (int)(floor(y)); |