ccShader_CameraClear.vert 428 B

123456789101112131415161718192021222324
  1. const char* ccCameraClearVert = R"(
  2. uniform float depth;
  3. attribute vec4 a_position;
  4. attribute vec2 a_texCoord;
  5. attribute vec4 a_color;
  6. #ifdef GL_ES
  7. varying mediump vec2 v_texCoord;
  8. varying mediump vec4 v_color;
  9. #else
  10. varying vec2 v_texCoord;
  11. varying vec4 v_color;
  12. #endif
  13. void main()
  14. {
  15. gl_Position = a_position;
  16. gl_Position.z = depth;
  17. gl_Position.w = 1.0;
  18. v_texCoord = a_texCoord;
  19. v_color = a_color;
  20. }
  21. )";