• dequantizePrimitive(prim: Primitive, options: Required<DequantizeOptions>): void
  • Dequantize a single Primitive, converting all vertex attributes to float32. Dequantization will increase the size of the mesh on disk and in memory, but may be necessary for compatibility with applications that don't support quantization.


    import { dequantizePrimitive } from '@gltf-transform/functions';
    const mesh = document.getRoot().listMeshes().find((mesh) => mesh.getName() === 'MyMesh');
    for (const prim of mesh.listPrimitives()) {
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.