diff options
Diffstat (limited to 'assets/shaders/image_viewer.vert.glsl')
| -rw-r--r-- | assets/shaders/image_viewer.vert.glsl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/shaders/image_viewer.vert.glsl b/assets/shaders/image_viewer.vert.glsl new file mode 100644 index 0000000..1ad43f4 --- /dev/null +++ b/assets/shaders/image_viewer.vert.glsl @@ -0,0 +1,15 @@ +#version 330 core + +uniform mat4 model_matrix; +uniform mat4 view_matrix; +uniform mat4 projection_matrix; + +layout (location = 0) in vec3 position; +layout (location = 1) 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 |
