-
由 Ian Kerr 提交于
from the transforms that bind a THREE.Skeleton to a THREE.SkinnedMesh. This allows us to animate multiple THREE.SkinnedMesh instances with a single THREE.Skeleton. Here is a summary of the major changes: extras/helpers/SkeletonHelper.js * Fixed code mistakes (missing 'THREE'). objects/Bone.js * Removed duplicate code that is already in THREE.Object3D. objects/Skeleton.js * Not a descendant of THREE.Object3D (previous version was). * Stores boneMatrices and boneTexture. * Independent of THREE.SkinnedMesh. objects/SkinnedMesh.js * Refactored boneMatrices and boneTexture related code into THREE.Skeleton. * Added two bind matrix modes: "attached" and "detached". renderers/WebGLRenderer.js renderers/webgl/WebGLProgram.js * Attach bindMatrix and bindMatrixInverse to shaders. renderers/shaders/ShaderChunk.js renderers/shaders/ShaderLib.js * Use bind matrices during skinning.
889fa9ff