aboutsummaryrefslogtreecommitdiff
path: root/shaders/color.vsh
blob: ff878bee5587c641b2c0628347f6d02703ce8081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# version 330 core

layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;

uniform mat4 model, view, proj;
uniform mat4 rotNormals;

out vec3 FragPos;
out vec3 Normal;

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));
}
Feel free to download, copy and edit any repo