You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
509 B

  1. ///////////////////////////////////////////////////////////
  2. // Atttributes
  3. attribute vec3 a_position;
  4. attribute vec2 a_texCoord;
  5. attribute vec4 a_color;
  6. ///////////////////////////////////////////////////////////
  7. // Uniforms
  8. uniform mat4 u_projectionMatrix;
  9. ///////////////////////////////////////////////////////////
  10. // Varyings
  11. varying vec2 v_texCoord;
  12. varying vec4 v_color;
  13. void main()
  14. {
  15. gl_Position = u_projectionMatrix * vec4(a_position, 1);
  16. v_texCoord = a_texCoord;
  17. v_color = a_color;
  18. }