This struct contains everything related to the building of a ray tracing's world. The world has objects (or shapes), point lights and an ambient color. Together, these elements makes the scene rendering possible. More...
#include <world.h>

Data Fields | |
| t_hit * | xs |
| int | object_count |
| t_shape * | objects |
| int | light_count |
| t_light * | lights |
| t_color | ambient |
This struct contains everything related to the building of a ray tracing's world. The world has objects (or shapes), point lights and an ambient color. Together, these elements makes the scene rendering possible.
| xs | A struct of type t_hit that stores intersections' values, if any. |
| object_count | Stores the information about how many shapes there are in the world. |
| objects | A list of objects (or shapes) that exist in the world. They can be a cone, a sphere, a plane or a cylinder. |
| light_count | Stores the information about how many point lights there are in the world. |
| lights | A list of point lights that exist in the world. |
| ambient | Represents the ambient color in the world. |