GLSL ES 中可以使用struct关键字定义结构体,将已存在的数据类型聚合到一起,如下:. //定义结构体类型light. struct light {. vec4 color;.
確定! 回上一頁