We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 099a93f commit 1939065Copy full SHA for 1939065
1 file changed
src/objects/Skeleton.js
@@ -28,8 +28,8 @@ THREE.Skeleton = function ( bones, boneInverses, useVertexTexture ) {
28
// 32x32 pixel texture max 256 bones * 4 pixels = (32 * 32)
29
// 64x64 pixel texture max 1024 bones * 4 pixels = (64 * 64)
30
31
- var size = THREE.Math.nextPowerOfTwo( this.bones.length * 4 ); // 4 pixels needed for 1 matrix
32
-
+ var size = THREE.Math.nextPowerOfTwo( Math.sqrt( this.bones.length * 4 ) ); // 4 pixels needed for 1 matrix
+
33
this.boneTextureWidth = size;
34
this.boneTextureHeight = size;
35
0 commit comments