提交 c9f5f1e4 编写于 作者: M Mr.doob

Implemented fix in #4152.

All the skinning examples seem to be working fine still.
上级 8088d07a
......@@ -1270,6 +1270,8 @@ THREE.ShaderChunk = {
"mat4 boneMatX = getBoneMatrix( skinIndex.x );",
"mat4 boneMatY = getBoneMatrix( skinIndex.y );",
"mat4 boneMatZ = getBoneMatrix( skinIndex.z );",
"mat4 boneMatW = getBoneMatrix( skinIndex.w );",
"#endif"
......@@ -1290,7 +1292,9 @@ THREE.ShaderChunk = {
"#endif",
"vec4 skinned = boneMatX * skinVertex * skinWeight.x;",
"skinned += boneMatY * skinVertex * skinWeight.y;",
"skinned += boneMatY * skinVertex * skinWeight.y;",
"skinned += boneMatZ * skinVertex * skinWeight.z;",
"skinned += boneMatW * skinVertex * skinWeight.w;",
"#endif"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册