draw a quad
This commit is contained in:
parent
57afdc3d21
commit
c9dc5f5807
3 changed files with 45 additions and 16 deletions
|
|
@ -2,9 +2,13 @@
|
|||
|
||||
// use the input ("in") vertices from index zero
|
||||
layout(location = 0) in vec4 position;
|
||||
layout(location = 1) in vec4 color;
|
||||
|
||||
smooth out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
// simply copy teh output position
|
||||
gl_Position = position;
|
||||
out_color = color;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue