This commit is contained in:
xsl
2025-08-30 21:22:56 +08:00
commit 1680bfd279
5 changed files with 1068 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#version 450
layout(location = 0) out vec4 outColor;
void main() {
outColor = vec4(1.0, 0.5, 0.2, 1.0); // 橙色
}
+11
View File
@@ -0,0 +1,11 @@
#version 450
vec2 positions[3] = vec2[](
vec2(0.0, -0.5),
vec2(0.5, 0.5),
vec2(-0.5, 0.5)
);
void main() {
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
}