13 lines
323 B
GLSL
13 lines
323 B
GLSL
#version 330 core
|
|
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;
|
|
|
|
out vec2 TexCoord;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(pos_attrib.xy, 0.0, 1.0);
|
|
TexCoord = tex_coord_attrib;
|
|
}
|