1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

code update

This commit is contained in:
Meow J
2018-02-19 23:17:03 -05:00
parent a19476d644
commit 1ca912c2ef
3 changed files with 6 additions and 8 deletions

View File

@@ -441,7 +441,7 @@ void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0);
mat3 normalMatrix = mat3(transpose(inverse(view * model)));
vs_out.normal = normalize(vec3(projection * vec4(normalMatrix * aNormal, 1.0)));
vs_out.normal = normalize(vec3(projection * vec4(normalMatrix * aNormal, 0.0)));
}
```