WIP: REAL 3D object parsing

This commit is contained in:
2015-04-30 20:06:57 +02:00
parent 82ee2586d3
commit bd773d8214
11 changed files with 575 additions and 4 deletions

8
shaders/object.fs Normal file
View File

@@ -0,0 +1,8 @@
#version 330 core
#extension GL_ARB_explicit_uniform_location : enable
out vec4 color;
void main(void) {
color = vec4(1.0, 1.0, 1.0, 1.0);
}

16
shaders/object.vs Normal file
View File

@@ -0,0 +1,16 @@
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
#extension GL_ARB_explicit_uniform_location : enable
layout(location = 0) uniform mat4 mvp_matrix;
layout(location = 0) in vec3 vertex;
layout(location = 1) in vec2 vertexTC;
out vec2 fragTC;
void main(void) {
gl_Position = mvp_matrix * vec4(vertex, 1.0);
fragTC = vertexTC;
}