A struct for info from a ray-object intersection

Constructor

inlinenew(_t:Float)

Construct from a ray's t parameter. Other optional fields are manually filled in as needed

Parameters:

_t

the t to use

Variables

face:Face

The specific face in the mesh where the intersection is located (only filled for BVH's)

t:Float

t parameter of the ray at point of intersection

t2:Float

t parameter of the ray when it exits the object (only filled for bounding boxes)

u:Float

The barycentric coordinate u of the intersection point in the triangle (only filled for triangles)

v:Float

The barycentric coordinate v of the intersection point in the triangle (only filled for triangles)