diff options
| author | Mel <einebeere@gmail.com> | 2022-10-10 16:23:26 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-10 16:23:26 +0200 |
| commit | cb3ddae385c03a8830d39dc37fcd5bf273524d5e (patch) | |
| tree | 0ccddcd6b32838b8fc2b65805a4fba96c4c0ff39 /assets/shaders/vertex.glsl | |
| parent | 799c06e0387e01bdb8a10019be6192f9db00a824 (diff) | |
| download | meowcraft-cb3ddae385c03a8830d39dc37fcd5bf273524d5e.tar.zst meowcraft-cb3ddae385c03a8830d39dc37fcd5bf273524d5e.zip | |
Try to add second VBO
Diffstat (limited to 'assets/shaders/vertex.glsl')
| -rw-r--r-- | assets/shaders/vertex.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
