basic opengl triangle
This commit is contained in:
parent
9f13d5a39e
commit
57afdc3d21
6 changed files with 282 additions and 0 deletions
10
opengl/vertex.glsl
Normal file
10
opengl/vertex.glsl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#version 330
|
||||
|
||||
// use the input ("in") vertices from index zero
|
||||
layout(location = 0) in vec4 position;
|
||||
|
||||
void main()
|
||||
{
|
||||
// simply copy teh output position
|
||||
gl_Position = position;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue