diff options
author | iurii plugatarov <[email protected]> | 2024-08-11 01:12:21 +0200 |
---|---|---|
committer | iurii plugatarov <[email protected]> | 2024-08-11 01:12:21 +0200 |
commit | 3e4e449f585cddd590fb7f77a849ccc17c640425 (patch) | |
tree | e3c17d49fe82b180ebe44b265294a21c8be7b141 /src/shaders | |
parent | ee735611611bf7b27bccbca808e5d72da45b9937 (diff) | |
download | ogl-3e4e449f585cddd590fb7f77a849ccc17c640425.tar.gz |
linal main
Diffstat (limited to '')
-rw-r--r-- | src/shaders/triangle.vert.glsl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl index 22041cd..08be169 100644 --- a/src/shaders/triangle.vert.glsl +++ b/src/shaders/triangle.vert.glsl @@ -1,14 +1,13 @@ #version 330 core layout (location = 0) in vec3 aPos; -layout (location = 1) in vec3 aColor; -layout (location = 2) in vec2 aTexCoord; +layout (location = 1) in vec2 aTexCoord; -out vec3 ourColor; out vec2 TexCoord; + +uniform mat4 transform; void main() { - gl_Position = vec4(aPos, 1.0); - ourColor = aColor; - TexCoord = aTexCoord; -} + gl_Position = transform * vec4(aPos, 1.0f); + TexCoord = vec2(aTexCoord.x, aTexCoord.y); +} |