@pmndrs/bvh
    Preparing search index...

    Function quantizeNodeWords

    • Packs nodeCount 64-byte nodes (floats/words from nodeWordOffset, node 0 the root) into a frame slot and nodeCount 32-byte nodes at out[outWordOffset..]. The frame comes from the root's children. This is both the builders' packing and the CPU half of a refit's re-quantize: refit the 64-byte copy (refitOnCpu), then pack it again. Returns the frame.

      Parameters

      • floats: Float32Array
      • words: Uint32Array
      • nodeWordOffset: number
      • nodeCount: number
      • out: Uint32Array
      • outWordOffset: number

      Returns NodeFrame