Skip to content

Commit

Permalink
[#4] Adjust the instance scene.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morozov-5F committed Nov 28, 2021
1 parent cae29a6 commit b2969da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scenes/rt_scenes.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ rt_hittable_list_t *rt_scene_instance_test(void)

rt_hittable_t *box = rt_box_new(point3(-1, -1, -1), point3(1, 1, 1), green);
rt_hittable_t *instance = rt_instance_new(box);
rt_instance_rotate_y(instance, 0);
rt_instance_translate(instance, point3(1, 0, 0));
rt_instance_rotate_y(instance, 45);
rt_instance_translate(instance, point3(1, 0, 0.1));

rt_hittable_list_add(objects, instance);
rt_hittable_list_add(objects, rt_box_new(point3(-0.25, -0.25, -0.25), point3(0.25, 0.25, 0.25), red));
Expand Down

0 comments on commit b2969da

Please sign in to comment.