Expand description
Main loop & wrapper struct
Structs§
- World
- Collection of all objects to be added to the scene
Functions§
- calc_
color - Calls
color
and initializes the recursion depth counter. - color
- Recursively calculate color af a point in the image from the object the ray hits.
- scatter
- Calculate reflected or refracted rays (with a certain amount of randomness)