22 lines
512 B
GLSL
22 lines
512 B
GLSL
#version 330 core
|
|
#extension GL_ARB_shading_language_420pack : enable
|
|
#extension GL_ARB_explicit_uniform_location : enable
|
|
|
|
layout(location = 0) uniform mat4 vp_matrix;
|
|
layout(location = 1) uniform mat4 m_matrix;
|
|
|
|
layout(location = 0) in vec3 vertex;
|
|
layout(location = 1) in vec2 vertexTC;
|
|
layout(location = 2) in uint useAnimTex;
|
|
|
|
out vec2 fragTC;
|
|
|
|
flat out uint fragUseAnimTex;
|
|
|
|
void main(void) {
|
|
gl_Position = vp_matrix * m_matrix * vec4(vertex, 1.0);
|
|
|
|
fragTC = vertexTC;
|
|
fragUseAnimTex = useAnimTex;
|
|
}
|