From 8bd230c010eaaae3715c37faf579034063d20b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Wed, 14 Feb 2018 13:21:49 +0100 Subject: [PATCH] Remove lag: lower resolution for ground --- main_bounce.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_bounce.cpp b/main_bounce.cpp index 28654ea..be7d707 100644 --- a/main_bounce.cpp +++ b/main_bounce.cpp @@ -38,7 +38,7 @@ int main(int argc, char** argv) { ball.get_surface()->set_color(Color(1., 0., 0.)); Cuboid bbox = ball.get_surface()->max_bounding_box(); - Cuboid bbox_2(Point(-20, -2, -20), Point(20,2,20)); + Cuboid bbox_2(Point(-20, -3, -20), Point(20,3,20)); printf("%.2lf %.2lf %.2lf | %.2lf %.2lf %.2lf\n", bbox.low(0), bbox.low(1), bbox.low(2), bbox.high(0), bbox.high(1), bbox.high(2)); @@ -46,7 +46,7 @@ int main(int argc, char** argv) { if(perlin) { perlin_ground.get_surface()->set_color(Color(0.13, 0.82, 0.21)); - render.add_surface(perlin_ground.get_surface(), bbox_2, 1); + render.add_surface(perlin_ground.get_surface(), bbox_2, 1.2); } else { ground_mesh.get_mesh()->set_color(Color(0.13, 0.82, 0.21));