「スケルタルアニメーション」の版間の差分

ページの作成:「'''スケルタルアニメーション'''(英語:skeletal animation)とは、3DCGにおけるアニメーションの手法のひとつで、キャラク…」
 
31行目: 31行目:
layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ
layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ


mat4 skin = BoneTransforms[BoneIndex[0]] * BoneWeights[0]
mat4 skin = BoneTransforms[BoneIndices[0]] * BoneWeights[0]
           + BoneTransforms[BoneIndices[1]] * BoneWeights[1]
           + BoneTransforms[BoneIndices[1]] * BoneWeights[1]
           + BoneTransforms[BoneIndices[2]] * BoneWeights[2]
           + BoneTransforms[BoneIndices[2]] * BoneWeights[2]