diff options
Diffstat (limited to 'engine/vertex.glsl')
-rw-r--r-- | engine/vertex.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/vertex.glsl b/engine/vertex.glsl index 37d5677..db3d612 100644 --- a/engine/vertex.glsl +++ b/engine/vertex.glsl @@ -4,9 +4,11 @@ layout (location = 1) in vec3 color; out vec3 in_frag_color; +uniform mat4 transform; + void main() { - gl_Position = vec4(pos.x, pos.y, pos.z, 1.0); + gl_Position = transform * vec4(pos, 1.0); in_frag_color = color; } |