summaryrefslogtreecommitdiff
path: root/engine/vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'engine/vertex.glsl')
-rw-r--r--engine/vertex.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/vertex.glsl b/engine/vertex.glsl
index db3d612..b0a2a13 100644
--- a/engine/vertex.glsl
+++ b/engine/vertex.glsl
@@ -4,11 +4,13 @@ layout (location = 1) in vec3 color;
out vec3 in_frag_color;
-uniform mat4 transform;
+uniform mat4 model;
+uniform mat4 view;
+uniform mat4 projection;
void main()
{
- gl_Position = transform * vec4(pos, 1.0);
+ gl_Position = projection * view * model * vec4(pos, 1.0);
in_frag_color = color;
}