Add support for multiple lights

This commit is contained in:
Godzil
2020-02-22 15:12:06 +00:00
parent 4cdf7a4264
commit 935c8ebff7
2 changed files with 11 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ public:
Tuple shadeHit(Computation comps, uint32_t depthCount = 4);
Tuple colourAt(Ray r, uint32_t depthCount = 4);
bool isShadowed(Tuple point);
bool isShadowed(Tuple point, uint32_t light = 0);
Colour reflectColour(Computation comps, uint32_t depthCount = 4);
Colour refractedColour(Computation comps, uint32_t depthCount = 4);