我找到了一些资料,其中一个来自Rajawali框架
"mat4 TransformedMatrix = (vBoneWeight1.x * uBoneMatrix[int(vBoneIndex1.x)]) + \n"
+ "(vBoneWeight1.y * uBoneMatrix[int(vBoneIndex1.y)]) + \n"
+ "(vBoneWeight1.z * uBoneMatrix[int(vBoneIndex1.z)]) + \n"
+ "(vBoneWeight1.w * uBoneMatrix[int(vBoneIndex1.w)]);\n"
+
" gl_Position = uMVPMatrix * TransformedMatrix * position;\n"
在GPU上混合骨骼变换 但我找不到如何调整此代码以使用SceneKit 我可以读取权重,节点和索引,但我应该使用什么矩阵?