加入渲染点的代码

This commit is contained in:
xsl
2025-09-17 22:48:56 +08:00
parent e4c89a2651
commit ea602c4f8f
4 changed files with 37 additions and 0 deletions
@@ -0,0 +1,11 @@
#version 450
// 从顶点着色器接收的颜色
layout(location = 0) in vec3 fragColor;
// 输出颜色
layout(location = 0) out vec4 outColor;
void main() {
outColor = vec4(fragColor, 1.0); // 使用传入的颜色
}