Techneck/vertex_shader.glsl

14 lines
243 B
Plaintext
Raw Normal View History

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