From b86e114f574e0dec4c23a90f9f1bb590db9e578e Mon Sep 17 00:00:00 2001 From: nic96 Date: Sat, 28 Nov 2020 01:30:45 -0700 Subject: [PATCH] removed redundant v_Normal in shader --- crates/bevy_pbr/src/render_graph/forward_pipeline/forward.vert | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/bevy_pbr/src/render_graph/forward_pipeline/forward.vert b/crates/bevy_pbr/src/render_graph/forward_pipeline/forward.vert index 00cd153602e63..028a86389c012 100644 --- a/crates/bevy_pbr/src/render_graph/forward_pipeline/forward.vert +++ b/crates/bevy_pbr/src/render_graph/forward_pipeline/forward.vert @@ -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;