diff options
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 |
