diff options
Diffstat (limited to 'res/shaders/triangle.vs')
-rw-r--r-- | res/shaders/triangle.vs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/shaders/triangle.vs b/res/shaders/triangle.vs index 57cbc74..a6b5b4b 100644 --- a/res/shaders/triangle.vs +++ b/res/shaders/triangle.vs @@ -6,9 +6,11 @@ layout (location = 2) in vec2 a_tex_coord; out vec3 our_color; out vec2 TexCoord; +uniform mat4 transform; + void main() { - gl_Position = vec4(a_pos, 1.0); + gl_Position = transform * vec4(a_pos, 1.0); our_color = a_color; TexCoord = vec2(a_tex_coord.x, a_tex_coord.y); } |