Skip to content

Commit

Permalink
[#4] Use proper transform for the cube in the metal showcase scene.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morozov-5F committed Nov 28, 2021
1 parent b2969da commit a2b5452
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scenes/rt_scenes.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ rt_hittable_list_t *rt_scene_metal_test(void)
rt_hittable_list_add(objects, rt_sphere_new(point3(2, 2, 0), 1, rt_mt_metal_new(colour(0.8, 0.8, 0.9), 1.0)));

rt_hittable_t *box_instance =
rt_instance_new(rt_box_new(point3(-1, 0, 10), point3(1, 2, 12), rt_mt_metal_new(colour(0.8, 0.8, 0.9), 0.0)));
rt_instance_rotate_y(box_instance, 10);
rt_instance_new(rt_box_new(point3(-1, -1, -1), point3(1, 1, 1), rt_mt_metal_new(colour(0.8, 0.8, 0.9), 0.0)));
rt_instance_rotate_y(box_instance, 45);
rt_instance_translate(box_instance, vec3(2, 1, 11));
rt_hittable_list_add(objects, box_instance);

return objects;
Expand Down

0 comments on commit a2b5452

Please sign in to comment.