2023-10-10 10:43:34 +00:00
|
|
|
#version 420 core
|
|
|
|
|
|
|
|
layout(location=0) in vec3 pos;
|
2023-10-11 13:01:54 +00:00
|
|
|
layout(location=1) in vec2 uv;
|
|
|
|
|
|
|
|
out vec2 uv_coords;
|
2023-10-10 10:43:34 +00:00
|
|
|
|
2023-10-10 11:35:29 +00:00
|
|
|
uniform mat4 projection_matrix;
|
2023-10-10 15:06:01 +00:00
|
|
|
uniform mat4 view_matrix;
|
|
|
|
uniform mat4 model_matrix;
|
2023-10-10 11:35:29 +00:00
|
|
|
|
2023-10-10 10:43:34 +00:00
|
|
|
void main() {
|
|
|
|
|
2023-10-10 16:00:43 +00:00
|
|
|
gl_Position = projection_matrix * view_matrix * model_matrix * vec4(pos, 1.0);
|
2023-10-12 06:18:43 +00:00
|
|
|
|
2023-10-11 13:01:54 +00:00
|
|
|
uv_coords = uv;
|
2023-10-10 15:50:12 +00:00
|
|
|
}
|
2023-10-10 10:43:34 +00:00
|
|
|
|