Performs a ray - primitive intersection test. Returns an Intersection object with the associated information.
If the ray did not hit the primitive, the distance will be negative.
Source
Intersection intersect(Ray ray, num previousBestDistance);
Performs a ray - primitive intersection test. Returns an Intersection object with the associated information.
If the ray did not hit the primitive, the distance will be negative.
Intersection intersect(Ray ray, num previousBestDistance);