Picking supports skinned meshes
This commit is contained in:
@@ -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])]
|
||||
|
||||
Reference in New Issue
Block a user