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

9
opengl/fragment.glsl Normal file
View file

@ -0,0 +1,9 @@
#version 330
out vec4 color;
void main()
{
// set the color for each vertex to white
color = vec4(1.0f, 1.0f, 1.0f, 1.0f);
}