Base lightrendering started, still some work to be done.

This commit is contained in:
tleety
2015-09-10 22:13:37 +02:00
parent f2209466ef
commit c0589563af
7 changed files with 61 additions and 18 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ void main()
+ BoneWeights2[3] * Bones[int(BoneIndices2[3])];
}
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;