[FEAT] Add shadow support

This commit is contained in:
2024-02-26 23:32:33 +01:00
parent 58938fbb0c
commit 0ce6bb15f0
14 changed files with 289 additions and 14 deletions

View File

@@ -296,10 +296,16 @@ SCENARIO("Shading an intersection from the inside", "[features/world.feature]")
AND_WHEN("c <- shade_hit(w, comps)")
{
Color c = w.shade_hit(comps);
#if 0 // Not working anymore with shadow.
THEN("c = color(0.90498, 0.90498, 0.90498)")
{
REQUIRE(c == Color(0.90498, 0.90498, 0.90498));
}
#endif
THEN("c = color(0.1, 0.1, 0.1)")
{
REQUIRE(c == Color(0.1, 0.1, 0.1));
}
}
}
}