[FEAT] Add Plane Chapter 09 is done
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user