Woops, wrong variables
This commit is contained in:
parent
2afd89dbf3
commit
d23f05de14
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue