magia-en-apk-assets/shaders/mosaic.vsh

20 lines
377 B
GLSL

attribute vec4 a_position;
attribute vec2 a_texCoord;
attribute vec4 a_color;
uniform mat4 u_MVPMatrix;
#ifdef GL_ES
varying mediump vec2 v_texCoord;
varying mediump vec4 v_fragmentColor;
#else
varying vec2 v_texCoord;
varying vec4 v_fragmentColor;
#endif
void main()
{
gl_Position = CC_PMatrix * a_position;
v_texCoord = a_texCoord;
v_fragmentColor = a_color;
}