diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 03:25:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 04:32:54 +0300 |
commit | 7cb20d841da16d0bffb63154403267500e9941f5 (patch) | |
tree | ef6a5e0b4e1de2f055ad3c0b3d5bb073a237f182 /source/blender/blenlib/intern/noise.c | |
parent | 4a78a2774bee655a54391cc8fafae2d20ead2bb0 (diff) |
Cleanup: follow our code style for float literals
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index bc8135605a8..cca08feee0d 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1051,8 +1051,8 @@ static float voronoi_F1F2(float x, float y, float z) static float voronoi_Cr(float x, float y, float z) { float t = 10 * voronoi_F1F2(x, y, z); - if (t > 1.f) { - return 1.f; + if (t > 1.0f) { + return 1.0f; } return t; } @@ -1099,8 +1099,8 @@ static float voronoi_F1F2S(float x, float y, float z) static float voronoi_CrS(float x, float y, float z) { float t = 10 * voronoi_F1F2(x, y, z); - if (t > 1.f) { - return 1.f; + if (t > 1.0f) { + return 1.0f; } return (2.0f * t - 1.0f); } @@ -1572,7 +1572,7 @@ float BLI_noise_mg_hybrid_multi_fractal(float x, } float rmd = octaves - floorf(octaves); - if (rmd != 0.f) { + if (rmd != 0.0f) { result += rmd * ((noisefunc(x, y, z) + offset) * pwr); } |