【发布时间】:2012-07-01 02:16:07
【问题描述】:
所以随着物体离我越来越远,我想应用淡入淡出。 对象是有纹理的。
我相信对象的颜色是通过这条线控制的
glVertexAttribPointer(GLKVertexAttribColor, 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), (const GLvoid *) offsetof(Vertex, Color));
不是从顶点数组中获取颜色,而是在其中插入颜色?
我试过设置 glColor4 等并设置
effect.useConstantColor = YES;
effect.constantColor = self.color;
【问题讨论】:
标签: ios opengl-es glkit eaglview texturing