diff options
author | iurii plugatarov <[email protected]> | 2024-08-16 21:34:17 +0200 |
---|---|---|
committer | iurii plugatarov <[email protected]> | 2024-08-16 21:34:17 +0200 |
commit | 76dfca79570ae1f4dc058ced03f48980466ef777 (patch) | |
tree | 8700492b64d50b5923afd22289497e8277b8b0e5 /res/shaders/triangle.vs | |
parent | fc3e2bed46c42a9af6a9e562b6609608e09e9850 (diff) | |
download | funhalla-76dfca79570ae1f4dc058ced03f48980466ef777.tar.gz |
transform
Diffstat (limited to '')
-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); } |