removed redundant v_Normal in shader (#938)

This commit is contained in:
Nick 2020-11-28 13:44:25 -07:00 committed by GitHub
parent 72b2fc9843
commit f3b49e44c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,6 @@ layout(set = 2, binding = 0) uniform Transform {
};
void main() {
v_Normal = (Model * vec4(Vertex_Normal, 1.0)).xyz;
v_Normal = mat3(Model) * Vertex_Normal;
v_Position = (Model * vec4(Vertex_Position, 1.0)).xyz;
v_Uv = Vertex_Uv;