Sprite ACTUALLY rendered as unitquad now.

This commit is contained in:
tleety
2015-09-10 18:32:50 +02:00
parent 58931e29b3
commit 1e67bfb103
2 changed files with 3 additions and 1 deletions
@@ -68,6 +68,7 @@ void main()
//gl_Position = MVP * boneTransform * vec4(Position, 1.0);
gl_Position = MVP * vec4(Position, 1.0);
//TODO: Make sure that boneTransform works here.
Output.Position = (V * M * boneTransform * vec4(Position, 1.0)).xyz;
Output.Normal = (inverse(transpose(V * M)) * boneTransform * vec4(Normal, 0.0)).xyz;
Output.Tangent = Tangent;