「スケルタルアニメーション」の版間の差分
Administrator (トーク | 投稿記録) |
Administrator (トーク | 投稿記録) |
||
| 31行目: | 31行目: | ||
layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ | layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ | ||
mat4 skin = BoneTransforms[ | 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] | ||