[FEAT] Add Plane Chapter 09 is done

This commit is contained in:
2024-02-27 23:29:44 +01:00
parent 86e31e76eb
commit 32689ab4cc
20 changed files with 399 additions and 68 deletions

View File

@@ -164,7 +164,7 @@ SCENARIO("shade_hit() is given an intersection in the shadow", "[features/world.
Ray r(Tuple::Point(0, 0, 5), Tuple::Vector(0, 0, 1));
AND_GIVEN("i <- intersection(4, s2)")
{
Intersection i(4, *s2);
Intersection i(4, s2);
WHEN("comps <- prepare_computatons(i,r)")
{
IntersectionData comps = i.prepare_computations(r);
@@ -200,7 +200,7 @@ SCENARIO("The hit should offset the point", "[features/intersections.feature]")
shape.set_transform(Matrix::translation(0, 0, 1));
AND_GIVEN("i <- intersection(5, shape)")
{
Intersection i(5, shape);
Intersection i(5, &shape);
WHEN("comps <- prepare_computatons(i,r)")
{
IntersectionData comps = i.prepare_computations(r);