Add belly to triangle
[opengl.git] / vertex.glsl
1 #version 330
2 in vec3 vPosition;
3 in vec4 vColor;
4 in vec3 vNormal;
5 uniform mat4 model;
6 uniform mat4 view;
7 uniform mat4 projection;
8 out vec4 color;
9 out vec3 normal;
10 out vec3 fragPos;
11
12 void main() {
13         vec4 pos = model * vec4(vPosition, 1.f);
14         gl_Position = projection * view * pos;
15         fragPos = vec3(pos);
16         color = vColor;
17         normal = vNormal;
18 }