diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:57:06 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:59:39 +0200 |
| commit | e5af28536bfb0f4c9131df56d2009ba5196f5e3a (patch) | |
| tree | 3ab928f961a1ccd8440b070d7b57f79146457e8c /src/shader/vertex.glsl | |
| download | animtool-e5af28536bfb0f4c9131df56d2009ba5196f5e3a.tar.xz | |
init
Diffstat (limited to 'src/shader/vertex.glsl')
| -rw-r--r-- | src/shader/vertex.glsl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/shader/vertex.glsl b/src/shader/vertex.glsl new file mode 100644 index 0000000..9389715 --- /dev/null +++ b/src/shader/vertex.glsl @@ -0,0 +1,17 @@ +#version 330 core + +layout(location = 0) in vec3 vert_pos; +layout(location = 1) in vec2 vert_tex; + +out vec3 frag_pos; +out vec2 frag_tex; + +uniform mat4 model; +uniform mat4 view_proj; + +void main() +{ + gl_Position = view_proj * model * vec4(vert_pos, 1.0); + frag_pos = vert_pos; + frag_tex = vert_tex; +} |
