03/shaders/shader.vert

12 lines
160 B
GLSL
Raw Permalink Normal View History

2022-07-26 10:13:30 +00:00
#version 330 core
layout(location = 0) in vec3 pos;
2022-12-15 10:45:11 +00:00
uniform mat4 vp;
uniform mat4 model;
2022-07-26 10:13:30 +00:00
void main()
{
2022-12-15 10:45:11 +00:00
gl_Position = vp * model * vec4(pos, 1.0);
2022-07-26 10:13:30 +00:00
}