@pmndrs/bvh
    Preparing search index...

    Type Alias CpuTraceScene

    CpuTraceScene: Pick<TraceSceneData, "nodes" | "triangles" | "topLevel"> & Partial<
        Pick<TraceSceneData, "triangleLeaves" | "positionLayout" | "nodeFormat">,
    > & { positions?: ArrayBuffer | Float32Array }

    The parts of a TraceSceneData the walk reads. triangleLeaves (default 'records'), positions and positionLayout (default 'vec4') only matter for an indexed scene.

    Type Declaration

    • Optional Readonlypositions?: ArrayBuffer | Float32Array

      Indexed scenes: the positions, as a buffer or as a Float32Array view (read through the view, not its whole buffer).