IFClite TypeScript API
    Preparing search index...

    Function quantizeInterleaved

    • Quantize a 28-byte interleaved batch vertex buffer (pos f32x3 + normal f32x3 + entityId u32, strideFloats = 7) into the 12-byte layout. Returns null when any axis extent exceeds the u16 lattice range — the caller keeps the f32 buffer then. With lattice, the data is encoded against its shared origin whenever it fits that origin's range, else against its own (the result's quantMin says which).

      Parameters

      • vertexData: Float32Array
      • strideFloats: number
      • Optionallattice: LatticeFrame

      Returns QuantizedVertexData | null