2023-11-14 00:14:08 +00:00
|
|
|
#version 130
|
|
|
|
|
|
|
|
in vec3 pos;
|
|
|
|
in vec4 color;
|
|
|
|
in vec2 tex_coord;
|
|
|
|
|
|
|
|
out vec4 _color;
|
|
|
|
out vec2 _tex_coord;
|
|
|
|
|
|
|
|
uniform mat4 proj;
|
2023-11-14 00:38:18 +00:00
|
|
|
uniform mat4 model;
|
2023-11-14 00:14:08 +00:00
|
|
|
|
|
|
|
void main() {
|
2023-11-14 00:38:18 +00:00
|
|
|
gl_Position = proj * model * vec4(pos, 1.0);
|
2023-11-14 00:14:08 +00:00
|
|
|
_color = color;
|
|
|
|
_tex_coord = tex_coord;
|
|
|
|
}
|