加入渲染点的代码
This commit is contained in:
@@ -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); // 使用传入的颜色
|
||||
}
|
||||
Reference in New Issue
Block a user