2022-05-04 13:27:42 +00:00
|
|
|
#version 440 core
|
|
|
|
in layout(location=0) vec3 aPos;
|
2022-06-04 23:44:54 +00:00
|
|
|
in layout(location=1) vec2 uv;
|
|
|
|
|
2022-05-04 13:27:42 +00:00
|
|
|
uniform mat4 M;
|
|
|
|
uniform mat4 V;
|
|
|
|
uniform mat4 P;
|
|
|
|
|
2022-06-04 23:44:54 +00:00
|
|
|
out vec2 TexCoord;
|
|
|
|
|
2021-09-29 18:14:27 +00:00
|
|
|
|
2022-04-22 20:37:38 +00:00
|
|
|
void main() {
|
2022-06-04 23:44:54 +00:00
|
|
|
TexCoord = uv;
|
2022-05-04 13:27:42 +00:00
|
|
|
gl_Position = P * V * M * vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
2021-09-29 18:14:27 +00:00
|
|
|
}
|