And gl_FragColor is a vec4, giving the four RGBA color components for the pixel. A vertex shader needs, at a minimum, an attribute to give the coordinates ...
確定! 回上一頁