About

There are 10,000 objects in the tree and 100 rays are cast from the eye each frame.

Intersections within the black part of the rays are ignored because it represents the portion of each ray less than the minimum distance.

Red rays are successful intersections and the cyan dot is the nearest point at which each red ray intersected an object.

Green rays are rays which hit no objects within their segments and are drawn from the minimum distance (minT) to the maximum distance (maxT).