From 76dfca79570ae1f4dc058ced03f48980466ef777 Mon Sep 17 00:00:00 2001 From: iurii plugatarov Date: Fri, 16 Aug 2024 22:34:17 +0300 Subject: transform --- res/shaders/triangle.vs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'res/shaders/triangle.vs') 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); } -- cgit 1.4.1-2-gfad0