image.vert.ts 502 B

123456789101112131415161718192021222324252627
  1. /**
  2. * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Alexander Rose <alexander.rose@weirdbyte.de>
  5. */
  6. export default `
  7. precision highp float;
  8. precision highp int;
  9. #include common
  10. #include common_vert_params
  11. attribute vec3 aPosition;
  12. attribute vec2 aUv;
  13. attribute mat4 aTransform;
  14. attribute float aInstance;
  15. varying vec2 vUv;
  16. varying float vInstance;
  17. void main() {
  18. #include assign_position
  19. vUv = aUv;
  20. vInstance = aInstance;
  21. }
  22. `;