Marker whose projected screen-space visibility should be tested.

interface MarkerOcclusionMarker {
    excludeObjectIds?: readonly string[];
    id: string;
    occluderFilter?: (objectId: string) => boolean;
    worldPos: Vec3;
}

Properties

excludeObjectIds?: readonly string[]

Object IDs that should not occlude this marker. Useful when the marker is pinned to a known object and small depth differences would otherwise count the host surface as an occluder.

id: string

Stable marker identifier used to report visibility state.

occluderFilter?: (objectId: string) => boolean

Marker-local occluder filter. Return false to ignore an object before triangle tests continue.

worldPos: Vec3

Marker anchor position in world coordinates.