Working sprite rendering. Removed bone transforms for now.

This commit is contained in:
2015-09-10 16:23:24 +02:00
parent 61efddb52e
commit 54bed28327
3 changed files with 60 additions and 9 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ void main()
+ BoneWeights2[3] * Bones[int(BoneIndices2[3])];
}
gl_Position = MVP * boneTransform * vec4(Position, 1.0);
//gl_Position = MVP * boneTransform * vec4(Position, 1.0);
gl_Position = MVP * vec4(Position, 1.0);
Output.Position = (V * M * boneTransform * vec4(Position, 1.0)).xyz;
Output.Normal = (inverse(transpose(V * M)) * boneTransform * vec4(Normal, 0.0)).xyz;