From e6e30712b0ce55ba07b4604efe7c29d88806be3e Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Mon, 17 Oct 2022 00:27:44 +0200 Subject: [PATCH] Remove a useless variable in the vertex shader --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index bae68f7..0bf6ecd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,15 +42,13 @@ fn main() { in vec3 normal; in vec2 tex_coords; - out vec3 v_position; out vec3 v_normal; out vec2 v_tex_coords; void main() { - v_position = position; v_normal = normal; v_tex_coords = tex_coords; - gl_Position = persp_matrix * view_matrix * vec4(v_position * 0.005, 1.0); + gl_Position = persp_matrix * view_matrix * vec4(position * 0.005, 1.0); } ",