aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-02-12 00:40:10 +0100
committerRay <raysan5@gmail.com>2019-02-12 00:40:10 +0100
commite7466eb0c4d2337d939cc7149e4e0eb8d5effd68 (patch)
treeb0ce32d3e9849970f1540127a791fbb6b7b9d40f /src
parentd00b8f9ffc7c83bd9a5089a6b94e74400b72c0be (diff)
downloadraylib-e7466eb0c4d2337d939cc7149e4e0eb8d5effd68.tar.gz
raylib-e7466eb0c4d2337d939cc7149e4e0eb8d5effd68.zip
Corrected function usage
Diffstat (limited to 'src')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 4c34663a..bd47fc81 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -2294,7 +2294,7 @@ Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float
// octaves = 6 -- number of "octaves" of noise3() to sum
// NOTE: We need to translate the data from [-1..1] to [0..1]
- float p = (stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6, 0, 0, 0) + 1.0f)/2.0f;
+ float p = (stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6) + 1.0f)/2.0f;
int intensity = (int)(p*255.0f);
pixels[y*width + x] = (Color){intensity, intensity, intensity, 255};