basic opengl triangle

This commit is contained in:
Alessandro Mauri 2023-01-19 00:53:46 +01:00
parent 9f13d5a39e
commit 57afdc3d21
6 changed files with 282 additions and 0 deletions

10
opengl/vertex.glsl Normal file
View 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;
}