The barycentric coordinate of the primitive.
See the discussion of [[barycentric_coord]] in Section "5.2.3.4 Fragment
Function Input Attributes" of Metal Shading Language Specification
get · iOS 18.0+
entity
TypeScript
get entity(): Entity
Swift declaration
var entity: Entity { get }
The entity that was hit.
get · iOS 18.0+
normal
TypeScript
get normal(): SDKHandle
Swift declaration
var normal: SIMD3<Float> { get }
The surface normal at the point of intersection, in scene space.
get · iOS 18.0+
instance
TypeScript
get instance(): number
Swift declaration
var instance: UInt32 { get }
The instance within the MeshResource of the intersection. This
can be used to index into MeshResource.contents.instances
get · iOS 18.0+
meshPart
TypeScript
get meshPart(): number
Swift declaration
var meshPart: UInt64 { get }
The mesh part id of the entity that was selected by the hit.
get · iOS 18.0+
position
TypeScript
get position(): SDKHandle
Swift declaration
var position: SIMD3<Float> { get }
The surface position at the point of intersection, in scene space.
get · iOS 18.0+
primitive
TypeScript
get primitive(): number
Swift declaration
var primitive: UInt32 { get }
The per-primitive identifier used with barycentric coordinates.