Techneck/vertex_shader.glsl

18 lines
315 B
Plaintext
Raw Normal View History

2023-10-10 10:43:34 +00:00
#version 420 core
layout(location=0) in vec3 pos;
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;
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);
uv_coords = uv;
2023-10-10 15:50:12 +00:00
}
2023-10-10 10:43:34 +00:00