摘要:
colortriangle.vert #version 330 core layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; out vec3 ourColor; uniform float xOffse 阅读全文
摘要:
顶点着色器 out vec3 Color是为了给片段着色器传参 #version 130 in vec3 VertexPosition; in vec3 VertexColor; out vec3 Color; void main() { Color = VertexColor; gl_Positi 阅读全文