Skip to content

3D engine that AI agents drive

Merge pull request #2325 from codepawl/2281-clip-index-all

Nguyen Xuan Anba7de7663c07
diff --cc src/gltf.js
index 1e9c5c45,469d99b5..5207e82c
--- a/src/gltf.js
+++ b/src/gltf.js
@@@ -11,9 -11,12 +11,12 @@@ import { readPunctualLights } from './g
import { validateDocumentReferences } from './gltf-references.js';
import { Matrix4 } from './gltf-nodes.js';
import { textureDescriptorInfo } from './renderer.js';
-import { createSkinPose, matrixDeterminant, updateSkinPose, validateSkinGeometry, validateSkinPose } from './skinning.js';
+import { SKIN_POSE_BYTES_PER_JOINT, createSkinPose, matrixDeterminant, updateSkinPose, validateSkinGeometry, validateSkinPose } from './skinning.js';
import { MAX_STORED_MORPH_TARGETS, createMorphPose, validateMorphGeometry, validateMorphPose, validateMorphTransform } from './morph.js';
+ /** The `clip` of a pose animation that plays every clip of the asset together. */
+ export const ALL_CLIPS = 'all';
+
// The defaults fit one large exported scene (a 240 MB GLB of 8 million vertices with 8K textures) and still bound a hostile file.
const DEFAULT_LIMITS = Object.freeze({
maxBytes: 256 * 1024 * 1024,