Perlin Ground integrated

This commit is contained in:
Rémi Oudin 2018-02-14 12:47:45 +01:00
parent 3bf61a7409
commit b208cc237e

View file

@ -12,7 +12,7 @@
int main(int argc, char** argv) {
FlatGround* flat = new FlatGround();
PerlinGround* flat = new PerlinGround();
GlutRender& render = GlutRender::get_instance();
render.init(&argc, argv, 640, 480, "Bouncing stuff");
@ -25,6 +25,7 @@ int main(int argc, char** argv) {
bbox.low(0), bbox.low(1), bbox.low(2),
bbox.high(0), bbox.high(1), bbox.high(2));
render.add_surface(ball.get_surface(), bbox);
render.add_surface(flat->get_surface(), bbox_2);
GroundFlatMesh ground(Point(0., 0., 0.), 0.05);