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.
 
 
 

19 lines
329 B

  1. define([
  2. ], function (
  3. ) {
  4. return `
  5. attribute vec2 aVertexPosition;
  6. attribute vec2 aTextureCoord;
  7. uniform mat3 projectionMatrix;
  8. varying vec2 vTextureCoord;
  9. void main(void){
  10. gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
  11. vTextureCoord = aTextureCoord;
  12. }
  13. `;
  14. });