@pmndrs/bvh
    Preparing search index...

    Interface SdfEncodeOptions

    Options of SdfGenerator.encode.

    interface SdfEncodeOptions {
        mask?: number;
        maxDistance?: number;
        sign?: SdfSign;
        slices?: SdfSlices;
        timestampWrites?: GPUComputePassTimestampWrites;
    }

    Hierarchy (View Summary)

    Index
    mask?: number

    Only instances whose mask shares a bit with this count. Default all. Ignored by a generator made with rayMasks: false.

    maxDistance?: number

    Distances are clamped to this (and to -this inside): the closest-point walk skips boxes farther away, so a narrow band is cheaper. Default: none (CLOSEST_POINT_MAX_DISTANCE, 1e18).

    sign?: SdfSign

    Default 'parity'. 'unsigned' skips the inside test (an open surface's distance, a quarter of the work).

    slices?: SdfSlices

    Only these z slices (a slab), for spreading a large grid over several submits. Default all.

    timestampWrites?: GPUComputePassTimestampWrites

    GPU timing of the dispatch's pass.