GlobeVSPole.js 486 B

1234567891011121314151617
  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. \n\
  7. varying vec2 v_textureCoordinates;\n\
  8. \n\
  9. void main() \n\
  10. {\n\
  11. float x = (position.x - czm_viewport.x) / czm_viewport.z;\n\
  12. float y = (position.y - czm_viewport.y) / czm_viewport.w;\n\
  13. v_textureCoordinates = vec2(x, y);\n\
  14. \n\
  15. gl_Position = czm_viewportOrthographic * position;\n\
  16. }";
  17. });