From cb3ddae385c03a8830d39dc37fcd5bf273524d5e Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 10 Oct 2022 16:23:26 +0200 Subject: Try to add second VBO --- assets/shaders/vertex.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets/shaders/vertex.glsl') diff --git a/assets/shaders/vertex.glsl b/assets/shaders/vertex.glsl index e7b9e3d..4faca1a 100644 --- a/assets/shaders/vertex.glsl +++ b/assets/shaders/vertex.glsl @@ -5,7 +5,11 @@ uniform mat4 view_matrix; uniform mat4 projection_matrix; in vec3 position; +in vec2 tex_coord; + +out vec2 frag_tex_coord; void main() { gl_Position = projection_matrix * view_matrix * model_matrix * vec4(position, 1.0); + frag_tex_coord = tex_coord; } \ No newline at end of file -- cgit 1.4.1