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.
Example:
import { dequantizePrimitive } from'@gltf-transform/functions';
const mesh = document.getRoot().listMeshes().find((mesh) => mesh.getName() === 'MyMesh');
for (const prim of mesh.listPrimitives()) {
dequantizePrimitive(prim);
}
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.
Example:
import { dequantizePrimitive } from '@gltf-transform/functions'; const mesh = document.getRoot().listMeshes().find((mesh) => mesh.getName() === 'MyMesh'); for (const prim of mesh.listPrimitives()) { dequantizePrimitive(prim); }