From d23f05de14bd2b909825076261871b85524faf2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Wed, 14 Feb 2018 10:34:54 +0100 Subject: [PATCH] Woops, wrong variables --- PerlinNoise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PerlinNoise.cpp b/PerlinNoise.cpp index 059d86d..c71bb2e 100644 --- a/PerlinNoise.cpp +++ b/PerlinNoise.cpp @@ -44,7 +44,7 @@ PerlinNoise::PerlinNoise(unsigned int seed) : ImplicitSurface(Point(0,0,0)) { } double PerlinNoise::operator() (double x, double y, double z) const { - return z - fBm(x, 0, y, 2, 0.3, 2.0); + return (y - fBm(x, 0, z, 2, 0.3, 2.0)); } double PerlinNoise::noise(double _x, double _y, double _z) const {