axmol/cocos/renderer/ccShader_3D_Terrain.vert

20 lines
379 B
GLSL
Raw Normal View History

2015-03-30 13:45:50 +08:00
const char* cc3D_Terrain_vert = STRINGIFY(
attribute vec4 a_position;
attribute vec2 a_texCoord;
attribute vec3 a_normal;
#ifdef GL_ES
2015-03-30 13:45:50 +08:00
varying mediump vec2 v_texCoord;
varying mediump vec3 v_normal;
#else
2015-03-30 13:45:50 +08:00
varying vec2 v_texCoord;
varying vec3 v_normal;
#endif
2015-03-30 13:45:50 +08:00
void main()
{
gl_Position = CC_MVPMatrix * a_position;
v_texCoord = a_texCoord;
v_normal = a_normal;
}
2015-04-03 09:11:09 +08:00
);