basic opengl triangle
This commit is contained in:
parent
9f13d5a39e
commit
57afdc3d21
6 changed files with 282 additions and 0 deletions
9
opengl/fragment.glsl
Normal file
9
opengl/fragment.glsl
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue