Woops, wrong variables

This commit is contained in:
Rémi Oudin 2018-02-14 10:34:54 +01:00
parent 2afd89dbf3
commit d23f05de14

View file

@ -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 {