It looks like you're new here. If you want to get involved, click one of these buttons!
attribute vec4 COLOR0;
attribute vec4 POSITION0; attribute vec4 COLOR0; attribute vec2 TEXCOORD0; uniform mat4 g_MVPMatrix; varying vec4 color; varying vec2 texCoord; void main() { gl_Position = g_MVPMatrix * POSITION0; color = COLOR0; texCoord = TEXCOORD0; }
#ifndef GL_ES #define lowp #define mediump #define highp #endif varying lowp vec4 color; varying mediump vec2 texCoord; uniform lowp vec4 g_Color; uniform lowp sampler2D g_Texture; void main() { gl_FragColor = g_Color * color * texture2D(g_Texture, texCoord); }
Comments
You can access the color vertices as
thanks^^