Remove lag: lower resolution for ground

This commit is contained in:
Théophile Bastian 2018-02-14 13:21:49 +01:00
parent eaa730f5dc
commit 8bd230c010

View file

@ -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));