@pmndrs/bvh
    Preparing search index...

    Interface GpuWalkCount

    One ray's counted walk (GpuRays.countWalk): its hit and the walk's work, from a BvhWalkCounts record.

    interface GpuWalkCount {
        hit: boolean;
        instance: number;
        instanceEntries: number;
        instancesWithHit: number;
        meshNodes: number;
        steps: number;
        t: number;
        topLevelNodes: number;
        triangle: number;
        triangleTests: number;
    }
    Index
    hit: boolean

    Closest: the ray hit; any: it is blocked.

    instance: number

    Closest hits: the hit's instance and triangle (0 otherwise).

    instanceEntries: number

    Instances entered (a merged mesh counts once).

    instancesWithHit: number

    Instances entered in which the walk accepted a hit (closest) or found the blocker (any).

    meshNodes: number

    Inner nodes of mesh trees whose two child boxes were tested.

    steps: number

    Iterations of the walk's loop: one per node or leaf processed, both levels.

    t: number

    Closest: the hit's distance (negative on a miss). Any: 1 blocked, -1 clear.

    topLevelNodes: number

    Inner nodes of the top level whose two child boxes were tested.

    triangle: number
    triangleTests: number