mpri-graphics-project/PerlinGround.cpp

10 lines
261 B
C++
Raw Normal View History

2018-02-13 17:03:11 +01:00
#include "PerlinGround.hpp"
PerlinGround::PerlinGround() : surface(PerlinNoise()) {}
PerlinGround::PerlinGround(unsigned int seed) : surface(PerlinNoise(seed)) {}
double PerlinGround::operator() (double x, double z) const {
return surface.noise(x, z);
}