ccShader_3D_Terrain.vert 373 B

12345678910111213141516171819
  1. const char* cc3D_Terrain_vert = R"(
  2. attribute vec4 a_position;
  3. attribute vec2 a_texCoord;
  4. attribute vec3 a_normal;
  5. #ifdef GL_ES
  6. varying mediump vec2 v_texCoord;
  7. varying mediump vec3 v_normal;
  8. #else
  9. varying vec2 v_texCoord;
  10. varying vec3 v_normal;
  11. #endif
  12. void main()
  13. {
  14. gl_Position = CC_MVPMatrix * a_position;
  15. v_texCoord = a_texCoord;
  16. v_normal = a_normal;
  17. }
  18. )";