+ terrain_rend->fog_density = fog_density;
+
+ cow_scene = new Scene;
+ if(!cow_scene->load("data/spot/spot.obj")) {
+ fprintf(stderr, "Failed to load scene: spot.obj.\n");
+ return false;
+ }
+
+ cow_rend = new MorphRenderer;
+ cow_rend->camera = camera;
+ cow_rend->scene = cow_scene;
+ cow_rend->fog_density = fog_density;
+
+ if(!cow_rend->create()) {
+ fprintf(stderr, "Failed to create renderer for cows.\n");
+ return false;
+ }
+
+ /* create cow objects */
+ Object *cow0 = cow_scene->objects[0];
+ cow0->transform.rotation_y(M_PI);
+ cow_scene->objects.clear();
+
+ float disk_radius = std::min(p.xsz, p.ysz) / 2.0 * 0.65;
+ std::vector<Vec2> cow_pos;