Perlin Ground integrated
This commit is contained in:
parent
3bf61a7409
commit
b208cc237e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue