Nigel Barink
16b61986a1
* Added Texures to the two sample cubes * Modified mesh structure - mesh now contains indices and vertices - Vertices contain vertices and uv's (later on they will also contain normals) Solution definitely not perfect and needs improvement.
15 lines
252 B
GLSL
15 lines
252 B
GLSL
#version 440 core
|
|
in layout(location=0) vec3 aPos;
|
|
in layout(location=1) vec2 uv;
|
|
|
|
uniform mat4 M;
|
|
uniform mat4 V;
|
|
uniform mat4 P;
|
|
|
|
out vec2 TexCoord;
|
|
|
|
|
|
void main() {
|
|
TexCoord = uv;
|
|
gl_Position = P * V * M * vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
|
} |