@pmndrs/bvh
    Preparing search index...

    Interface TriangleCandidate

    A candidate hit on a flagged triangle, as the filter sees it. The same fields as the WGSL BvhCandidate.

    interface TriangleCandidate {
        barycentrics: readonly [number, number];
        frontFace: boolean;
        instance: number;
        query: BvhQuery;
        rayMask: number;
        t: number;
        triangle: number;
    }
    Index
    barycentrics: readonly [number, number]

    Barycentric weights of corners 1 and 2.

    frontFace: boolean

    The authored front side (object-space winding), also for a mirrored instance.

    instance: number

    The platform instance index (BvhHit.instance).

    query: BvhQuery

    BVH_QUERY_CLOSEST (0) or BVH_QUERY_ANY (1).

    rayMask: number

    The trace's ray mask; all ones (RAY_MASK_ALL) when it has none or masks are off.

    t: number

    Distance along the ray, in world units.

    triangle: number

    The original (authored) triangle index within the instance's mesh.