Applies a transform matrix to every Primitive in the given Mesh.
Method:
Example:
import { fromTranslation } from 'gl-matrix/mat4';
import { transformMesh } from '@gltf-transform/functions';
// offset vertices, y += 10.
transformMesh(mesh, fromTranslation([], [0, 10, 0]));
Made by Don McCurdy • Documented with greendoc • © 2023 MIT License
transformMesh