diff options
| author | Mel <einebeere@gmail.com> | 2024-02-12 12:55:11 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-12 12:55:11 +0100 |
| commit | d2b5fc5b3bc648afffa42375706429685ac63794 (patch) | |
| tree | a2dfbb241e1d46e5616c5884e5f3d685de2a2cb6 /assets/shaders/image_viewer.vert.glsl | |
| parent | 588c7e87b7cab270698d43ca5c22d67793ae5fc4 (diff) | |
| download | meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.tar.zst meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.zip | |
Split rendering into own thread and sync through render action lists
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 |
