Hooray, 3D graphics, now actually functioning!

This commit is contained in:
duck
2025-04-24 17:26:57 +05:00
parent 89e0649efe
commit f42cebc87e
4 changed files with 85 additions and 43 deletions

View File

@@ -1,8 +1,9 @@
#version 450
layout(location = 0) in vec2 fragCoord;
layout(location = 0) in vec3 fragCoord;
layout(location = 1) in float vertexIndex;
layout(location = 0) out vec4 fragColor;
void main() {
fragColor = vec4(fragCoord, 0.0, 1.0);
fragColor = vec4(fragCoord.z, vertexIndex * 0.1, 0.0, 1.0);
}