aboutsummaryrefslogtreecommitdiff
path: root/shaders/color.vsh
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-09-12 10:18:08 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-09-12 10:18:08 -0500
commit6781af306edc8f6b0928013ed9ec2fa87d63da81 (patch)
tree9cd2cf01b7592c3ac353606fe1b34693ae8b5eee /shaders/color.vsh
parent86c7bdee944ce2f60d63124e9ddb76198ddbc676 (diff)
learn: 15. lightning maps
Diffstat (limited to 'shaders/color.vsh')
-rw-r--r--shaders/color.vsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/color.vsh b/shaders/color.vsh
index ff878be..d3a2082 100644
--- a/shaders/color.vsh
+++ b/shaders/color.vsh
@@ -2,16 +2,19 @@
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
+layout (location = 2) in vec2 aTexCoords;
uniform mat4 model, view, proj;
uniform mat4 rotNormals;
out vec3 FragPos;
out vec3 Normal;
+out vec2 TexCoords;
void main()
{
gl_Position = proj * view * model * vec4(aPos, 1.0f);
FragPos = vec3(model * vec4(aPos, 1.0));
Normal = vec3(rotNormals * vec4(aNormal, 1.0));
+ TexCoords = aTexCoords;
}
Feel free to download, copy and edit any repo