basic triangle

This commit is contained in:
2025-01-18 03:10:32 +03:00
parent a80395b964
commit b012641dc9
4 changed files with 120 additions and 8 deletions

6
shaders/shader.frag Normal file
View File

@@ -0,0 +1,6 @@
#version 330 core
out vec4 FragColor;
void main()
{
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
}

6
shaders/shader.vert Normal file
View File

@@ -0,0 +1,6 @@
#version 330 core
layout (location = 0) in vec3 aPos;
void main()
{
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
}