Normal is not modified

This commit is contained in:
Thomas Forgione 2018-04-24 14:03:34 +02:00
parent 066ec023f2
commit 8795c0aa17
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ out vec2 v_tex_coords;
out vec3 v_normal;
void main() {
v_normal = transpose(inverse(mat3(view))) * normal;
v_normal = normal;
v_tex_coords = tex_coords;
gl_Position = perspective * view * vec4(vertex, 1.0);