Remove a useless variable in the vertex shader

This commit is contained in:
2022-10-17 00:27:44 +02:00
parent e4f634a441
commit e6e30712b0
+1 -3
View File
@@ -42,15 +42,13 @@ fn main() {
in vec3 normal; in vec3 normal;
in vec2 tex_coords; in vec2 tex_coords;
out vec3 v_position;
out vec3 v_normal; out vec3 v_normal;
out vec2 v_tex_coords; out vec2 v_tex_coords;
void main() { void main() {
v_position = position;
v_normal = normal; v_normal = normal;
v_tex_coords = tex_coords; 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);
} }
", ",