You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
371 B
17 lines
371 B
#version 330
|
|
|
|
// use the input ("in") vertices from index zero
|
|
layout(location = 0) in vec2 position;
|
|
layout(location = 1) in vec4 color;
|
|
layout(location = 2) in vec2 uv;
|
|
|
|
flat out vec4 out_color;
|
|
out vec2 texture_coord;
|
|
|
|
void main()
|
|
{
|
|
// simply copy teh output position
|
|
gl_Position = vec4(position.x, position.y, 0.0f, 1.0f);
|
|
out_color = color;
|
|
texture_coord = uv;
|
|
} |