Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

24 lignes
476 B

  1. #include "ccParamIO.glsl"
  2. attribute vec4 a_position;
  3. attribute vec2 a_texCoord;
  4. attribute vec4 a_color;
  5. #ifdef OPENGL_ES
  6. varying lowp vec4 v_fragmentColor;
  7. varying mediump vec2 v_texCoord;
  8. #else
  9. varying vec4 v_fragmentColor;
  10. varying vec2 v_texCoord;
  11. #endif
  12. uniform mat4 u_uvTransform;
  13. void main()
  14. {
  15. gl_Position = CC_PMatrix * a_position;
  16. v_fragmentColor = a_color;
  17. vec4 uv = u_uvTransform * vec4(a_texCoord.x , a_texCoord.y , 0 , 1);
  18. v_texCoord = uv.xy;
  19. }