Class MPSIntersectionType
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSIntersectionType
-
public final class MPSIntersectionType extends java.lang.ObjectOptions for the MPSRayIntersector intersection type property
-
-
Field Detail
-
Nearest
public static final long Nearest
Find the closest intersection to the ray's origin along the ray direction. This is potentially slower than MPSIntersectionTypeAny but is well suited to primary visibility rays.- See Also:
- Constant Field Values
-
Any
public static final long Any
Find any intersection along the ray direction. This is potentially faster than MPSIntersectionTypeNearest and is well suited to shadow and occlusion rays.- See Also:
- Constant Field Values
-
-