API

Type Alias GeometryRenderingMeshBlendTagProvider

GeometryRenderingMeshBlendTagProvider: (mesh: WebXRSpatialLayerType) => number

Provides the packed mesh-blending tag written by geometry rendering for a mesh.

Tags must be 0 or contain a group ID between 1 and 63 in their low six bits. Tag 0 disables mesh blending. Instances and thin instances use the source mesh tag. This callback receives the source mesh for instanced draws. It runs in the render hot path and should avoid allocations and return a consistent value during a render.

Type Declaration