0.4.2 • Published 5 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
5 years ago
0.4.0
5 years ago
0.4.2
5 years ago
0.4.0-alpha.3
5 years ago
0.4.0-alpha.2
5 years ago
0.4.0-alpha.1
5 years ago
0.4.0-alpha.0
5 years ago
0.3.3
5 years ago
0.3.0
5 years ago
0.3.2
5 years ago
0.2.5
5 years ago
0.2.3
5 years ago
0.1.0
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago