ReprojectWebMercatorVS.js 485 B

123456789101112131415161718
  1. //This file is automatically rebuilt by the Cesium build process.
  2. /*global define*/
  3. define(function() {
  4. "use strict";
  5. return "attribute vec4 position;\n\
  6. attribute float webMercatorT;\n\
  7. \n\
  8. uniform vec2 u_textureDimensions;\n\
  9. \n\
  10. varying vec2 v_textureCoordinates;\n\
  11. \n\
  12. void main()\n\
  13. {\n\
  14. v_textureCoordinates = vec2(position.x, webMercatorT);\n\
  15. gl_Position = czm_viewportOrthographic * (position * vec4(u_textureDimensions, 1.0, 1.0));\n\
  16. }\n\
  17. ";
  18. });