2024-08-14 16:40:51 -04:00
|
|
|
#version 430
|
2024-08-14 02:16:53 -04:00
|
|
|
layout(location = 0) in vec3 pos_attrib; //this variable holds the position of mesh vertices
|
|
|
|
layout(location = 1) in vec2 tex_coord_attrib;
|
|
|
|
layout(location = 2) in vec3 normal_attrib;
|
|
|
|
|
2024-08-14 16:40:51 -04:00
|
|
|
out vec2 tex_coords;
|
2024-08-14 02:16:53 -04:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = vec4(pos_attrib.xy, 0.0, 1.0);
|
2024-08-14 16:40:51 -04:00
|
|
|
tex_coords = tex_coord_attrib;
|
2024-08-14 02:16:53 -04:00
|
|
|
}
|