2024-08-07 05:02:53 +00:00
|
|
|
#version 330 core
|
|
|
|
|
2024-08-07 05:02:54 +00:00
|
|
|
uniform vec4 subtexture = vec4(0, 0, 1, 1);
|
2024-08-07 05:02:53 +00:00
|
|
|
uniform mat4 mvp;
|
|
|
|
|
|
|
|
layout (location = 0) in vec3 vertices;
|
|
|
|
layout (location = 1) in vec2 itexCoords;
|
|
|
|
|
|
|
|
out vec2 texCoords;
|
|
|
|
|
|
|
|
void main() {
|
2024-08-07 05:02:54 +00:00
|
|
|
texCoords = itexCoords * subtexture.zw + subtexture.xy;
|
2024-08-07 05:02:53 +00:00
|
|
|
gl_Position = mvp * vec4(vertices, 1);
|
|
|
|
}
|