2015-05-07 15:09:06 +08:00
|
|
|
|
|
|
|
const char* ccCameraClearVert = STRINGIFY(
|
|
|
|
|
|
|
|
uniform float depth;
|
|
|
|
|
|
|
|
attribute vec4 a_position;
|
|
|
|
attribute vec2 a_texCoord;
|
|
|
|
attribute vec3 a_color;
|
2016-10-26 16:03:08 +08:00
|
|
|
#ifdef GL_ES
|
2015-05-07 15:09:06 +08:00
|
|
|
varying mediump vec2 v_texCoord;
|
|
|
|
varying mediump vec3 v_color;
|
2016-10-26 16:03:08 +08:00
|
|
|
#else
|
2015-05-07 15:09:06 +08:00
|
|
|
varying vec2 v_texCoord;
|
|
|
|
varying vec3 v_color;
|
2016-10-26 16:03:08 +08:00
|
|
|
#endif
|
2015-05-07 15:09:06 +08:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = a_position;
|
|
|
|
gl_Position.z = depth;
|
|
|
|
gl_Position.w = 1.0;
|
|
|
|
v_texCoord = a_texCoord;
|
|
|
|
v_color = a_color;
|
|
|
|
}
|
|
|
|
);
|