Draws cubes instead of triangles now

This commit is contained in:
0x01FE committed 2025-11-09 23:04:07 -06:00
1 parent 2067d5c18c
commit 45e2a5f4cc
441 files changed
+67481 -78

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#version 330 core
// The final color output for the pixel.
out vec4 FragColor;
void main()
{
// Hard-code the color to an obnoxious bright orange.
// The values are (Red, Green, Blue, Alpha).
FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
+16
View File
@@ -0,0 +1,16 @@
#version 330 core
// Input vertex attribute (e.g., from your VBO)
// 'layout (location = 0)' matches the first attribute you enable.
layout (location = 0) in vec3 aPos;
// A "uniform" is a global variable you set from your C++/Java/etc. code.
// This matrix combines your model, view, and projection matrices.
uniform mat4 u_mvp;
void main()
{
// gl_Position is a special built-in variable.
// It's the final clip-space position of the vertex.
gl_Position = u_mvp * vec4(aPos, 1.0);
}