Fix geometry shader normal homogenous coordinate, and use std::string instead of aString for model loading.

This commit is contained in:
Joey de Vries
2018-01-16 08:50:57 +01:00
parent 91bb8e8ca9
commit 3b605521fb
3 changed files with 4 additions and 4 deletions

View File

@@ -13,6 +13,6 @@ uniform mat4 model;
void main()
{
mat3 normalMatrix = mat3(transpose(inverse(view * model)));
vs_out.normal = vec3(projection * vec4(normalMatrix * aNormal, 1.0));
vs_out.normal = vec3(projection * vec4(normalMatrix * aNormal, 0.0));
gl_Position = projection * view * model * vec4(aPos, 1.0);
}