Visibility Mask
#
Visibility masks are used to control intersections between rays and geometry and are applied to all objects that affect how rays move through the scene. Two masks are required to determine if an intersection is valid, one mask applied to the geometry group, known as the geometry mask, and one applied to specific analysis pipeline, known as ray mask.
Comparing Masks#
By comparing the geometry mask with the ray mask the intersection program evaluates if a ray should intersect with a specific geometry or not. Each visibility mask contains 8 bits, two matching bits set to true in both the geometry mask and the ray mask result in an intersection.
Masks In The Scene#
When running raytraced analyses, many different masks can come into play. Especially when the same scene is used for multiple analyses that require different geometric compositions.