Picking supports skinned meshes

This commit is contained in:
Teejoon
2016-02-08 17:37:18 +01:00
parent d2cfa592f0
commit 060e674a6f
34 changed files with 281 additions and 226 deletions
@@ -26,7 +26,7 @@ out VertexData{
void main()
{
mat4 boneTransform = mat4(1);
//Remove if(). Shoudln't have to do this scine we know it's skinned and uses bones
if(BoneWeights[0] > 0.0f){
boneTransform = BoneWeights[0] * Bones[int(BoneIndices[0])]
+ BoneWeights[1] * Bones[int(BoneIndices[1])]