RayObject types.
Macros | |
| #define | O_FLOOR |
| #define | O_SKY |
| #define | O_SPHERE |
| #define | O_POLYGON |
| #define O_FLOOR |
Infinite floor object. RayObject::mp and RayObject::v2 define the plane: (p-RayObject::mp)*RayObject::v2 = 0 where p is any point on the plane.
| #define O_SKY |
Infinite sphere object. The sky object always has (0, 0, 0) origin and infinite size.
| #define O_SPHERE |
Perfect sphere. The center of the sphere is RayObject::mp. The radius is [RayObject::rad.x,RayObject::rad.y] and RayObject::rad.z can be ignored.
| #define O_POLYGON |
Polygon object. The points and polygons are stored in RayObject::padr and RayObject::vadr. RayObject::mp and RayObject::rad define the bounding box.