From e7466eb0c4d2337d939cc7149e4e0eb8d5effd68 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 12 Feb 2019 00:40:10 +0100 Subject: [PATCH] Corrected function usage --- src/textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures.c b/src/textures.c index 4c34663a2..bd47fc813 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};