2015-03-30 13:45:50 +08:00
|
|
|
|
2019-01-30 09:35:17 +08:00
|
|
|
const char* CC3D_terrain_vert = R"(
|
2015-03-30 13:45:50 +08:00
|
|
|
attribute vec4 a_position;
|
|
|
|
attribute vec2 a_texCoord;
|
|
|
|
attribute vec3 a_normal;
|
2016-10-26 16:03:08 +08:00
|
|
|
#ifdef GL_ES
|
2015-03-30 13:45:50 +08:00
|
|
|
varying mediump vec2 v_texCoord;
|
|
|
|
varying mediump vec3 v_normal;
|
2016-10-26 16:03:08 +08:00
|
|
|
#else
|
2015-03-30 13:45:50 +08:00
|
|
|
varying vec2 v_texCoord;
|
|
|
|
varying vec3 v_normal;
|
2016-10-26 16:03:08 +08:00
|
|
|
#endif
|
2019-01-30 09:35:17 +08:00
|
|
|
|
|
|
|
uniform mat4 u_MVPMatrix;
|
2015-03-30 13:45:50 +08:00
|
|
|
void main()
|
|
|
|
{
|
2019-01-30 09:35:17 +08:00
|
|
|
gl_Position = u_MVPMatrix * a_position;
|
2015-03-30 13:45:50 +08:00
|
|
|
v_texCoord = a_texCoord;
|
|
|
|
v_normal = a_normal;
|
|
|
|
}
|
2016-11-02 14:13:34 +08:00
|
|
|
)";
|