Should be able to load models now.

This commit is contained in:
Nicolás A. Ortega Froysa
2018-12-17 11:27:54 +01:00
parent e2d9fe9189
commit bae169977b
11 changed files with 440 additions and 115 deletions

View File

@ -0,0 +1,7 @@
#version 330 core
in vec3 frag_col;
out vec3 col;
void main() {
col = frag_col;
}

View File

@ -0,0 +1,9 @@
#version 330 core
layout(location = 0) in vec3 vert_pos;
uniform vec3 col;
/*uniform mat4 mvp;*/
out vec3 frag_col;
void main() {
gl_Position = /*mvp * */vec4(vert_pos, 1);
frag_col = col;
}