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:
@@ -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)));
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user