0.4.2 • Published 4 years ago
@gltf-transform/split v0.4.2
@gltf-transform/split
Part of the glTF-Transform project.
- GitHub: https://github.com/donmccurdy/glTF-Transform
- Documentation: https://gltf-transform.donmccurdy.com/
Installation
Install:
npm install --save @gltf-transform/split
Import:
// ES6
import { WebIO } from '@gltf-transform/core';
import { split } from '@gltf-transform/split';
// CommonJS
const { WebIO } = require('@gltf-transform/core');
const { split } = require('@gltf-transform/split');
// Apply.
const io = new WebIO();
const document = await io.read('/model.glb');
document.transform(split({meshes: ['Spinner', 'Gizmo']}));
const glb = io.packGLB(document); // → ArrayBuffer
Options
- meshes: List of mesh names to put in separate buffers. Required.
0.4.1
4 years ago
0.4.0
4 years ago
0.4.2
4 years ago
0.4.0-alpha.3
4 years ago
0.4.0-alpha.2
4 years ago
0.4.0-alpha.1
4 years ago
0.4.0-alpha.0
4 years ago
0.3.3
4 years ago
0.3.0
4 years ago
0.3.2
4 years ago
0.2.5
4 years ago
0.2.3
4 years ago
0.1.0
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago