|
TinyRaytracer 0.1
A simple C++ raytracer
|
ObjectInfo is a class that passes the parameters of a ray hit, and the details of the object that was hit. More...
#include <object.hpp>
Public Member Functions | |
| ObjectInfo (double distance, point3 i_point, vec3 normal, Materials mat) | |
Public Attributes | |
| bool | isHit = false |
| Signals if there was a hit. Defaults to false. | |
| double | distance |
| The distance from the ray origin to the object. | |
| point3 | i_point |
| The intersection point. | |
| vec3 | normal |
| The normal at the point of intersection. | |
| Materials | mat |
| Material properties. | |
ObjectInfo is a class that passes the parameters of a ray hit, and the details of the object that was hit.