2023-12-03 10:55:15 +00:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
layout (location = 0) in vec3 pos;
|
|
|
|
layout (location = 1) in vec2 texture_coord;
|
|
|
|
|
|
|
|
uniform mat4 view;
|
|
|
|
uniform mat4 projection;
|
|
|
|
|
|
|
|
out vec2 tex_coord;
|
|
|
|
|
|
|
|
void main() {
|
2023-12-05 16:18:36 +00:00
|
|
|
gl_Position = projection * view * vec4(pos.xyz, 1.0);
|
2023-12-03 10:55:15 +00:00
|
|
|
tex_coord = texture_coord;
|
|
|
|
}
|