Can now load models from file, kinda
This commit is contained in:
parent
4c3c1687ef
commit
ac5bf9abdb
13 changed files with 10247 additions and 12 deletions
|
@ -1,5 +1,4 @@
|
|||
#version 330 core
|
||||
in vec3 oCol;
|
||||
in vec2 oUV;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec3 aCol;
|
||||
layout (location = 2) in vec2 aUV;
|
||||
layout (location = 1) in vec2 aUV;
|
||||
|
||||
out vec3 oCol;
|
||||
out vec2 oUV;
|
||||
|
||||
uniform mat4 model;
|
||||
|
@ -12,7 +10,6 @@ uniform mat4 projection;
|
|||
|
||||
void main()
|
||||
{
|
||||
oCol = aCol;
|
||||
oUV = aUV;
|
||||
gl_Position = projection * view * model * vec4(aPos, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue