summary refs log tree commit diff
path: root/res/shaders/triangle.vs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--res/shaders/triangle.vs6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/shaders/triangle.vs b/res/shaders/triangle.vs
index a6b5b4b..c607a81 100644
--- a/res/shaders/triangle.vs
+++ b/res/shaders/triangle.vs
@@ -6,11 +6,13 @@ layout (location = 2) in vec2 a_tex_coord;
 out vec3 our_color;
 out vec2 TexCoord;
 
-uniform mat4 transform;
+uniform mat4 model;
+uniform mat4 view;
+uniform mat4 projection;
 
 void main()
 {
-    gl_Position = transform * vec4(a_pos, 1.0);
+    gl_Position = projection * view * model * vec4(a_pos, 1.0);
     our_color = a_color;
     TexCoord = vec2(a_tex_coord.x, a_tex_coord.y);
 }