17 lines
362 B
GLSL
17 lines
362 B
GLSL
#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;
|
|
}
|