summary refs log tree commit diff
path: root/res
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-08-16 21:34:17 +0200
committeriurii plugatarov <[email protected]>2024-08-16 21:34:17 +0200
commit76dfca79570ae1f4dc058ced03f48980466ef777 (patch)
tree8700492b64d50b5923afd22289497e8277b8b0e5 /res
parentfc3e2bed46c42a9af6a9e562b6609608e09e9850 (diff)
downloadfunhalla-76dfca79570ae1f4dc058ced03f48980466ef777.tar.gz
transform
Diffstat (limited to '')
-rw-r--r--res/shaders/triangle.vs4
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);
 }