「スケルタルアニメーション」を編集中
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
31行目: | 31行目: | ||
layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ | layout(location = 3) in uvec4 BoneIndices;// 頂点ごとに持つ | ||
− | + | mat4 skin = BoneTransforms[BoneIndices[0]] * BoneWeights[0] | |
− | + | + BoneTransforms[BoneIndices[1]] * BoneWeights[1] | |
− | + | + BoneTransforms[BoneIndices[2]] * BoneWeights[2] | |
− | + | + BoneTransforms[BoneIndices[3]] * BoneWeights[3]; | |
− | |||
− | |||
− | + | gl_Position = Projection * View * World * skin * vec4(Position, 1); | |
− | |||
</source> | </source> |