@pmndrs/bvh
    Preparing search index...

    Interface CpuTraceOptions

    Per-trace options.

    interface CpuTraceOptions {
        mask?: number;
        side?: number;
        stats?: CpuTraceStats;
    }
    Index
    mask?: number

    The ray mask (the WGSL *Masked functions' mask). Default all ones. Ignored with rayMasks: false.

    side?: number

    Side culling, CPU only (the WGSL walk has no side option): CPU_TRACE_FRONT_SIDE takes front-face hits only, CPU_TRACE_BACK_SIDE back-face hits only (the authored side, after the flip bit). A culled triangle is passed through like a filtered one: nothing is recorded, the filter isn't asked, and the closest distance stays. Default CPU_TRACE_DOUBLE_SIDE, the WGSL walk's behaviour.

    Counters to fill in.