Added model loading
This commit is contained in:
parent
707687b682
commit
8c62929e3c
24 changed files with 199852 additions and 23 deletions
|
@ -1,6 +1,21 @@
|
|||
#version 330 core
|
||||
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec3 aNormal;
|
||||
layout (location = 2) in vec2 aUV;
|
||||
|
||||
out vec3 oNormal;
|
||||
out vec2 oUV;
|
||||
out vec3 oFragPos;
|
||||
|
||||
uniform mat4 view;
|
||||
uniform mat4 projection;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(0.0);
|
||||
oNormal = aNormal;
|
||||
oUV = aUV;
|
||||
|
||||
gl_Position = projection * view * vec4(aPos, 1.0);
|
||||
oFragPos = aPos;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue