EllipsoidSurfaceAppearanceVS.js 681 B

123456789101112131415161718192021222324
  1. //This file is automatically rebuilt by the Cesium build process.
  2. /*global define*/
  3. define(function() {
  4. "use strict";
  5. return "attribute vec3 position3DHigh;\n\
  6. attribute vec3 position3DLow;\n\
  7. attribute vec2 st;\n\
  8. \n\
  9. varying vec3 v_positionMC;\n\
  10. varying vec3 v_positionEC;\n\
  11. varying vec2 v_st;\n\
  12. \n\
  13. void main() \n\
  14. {\n\
  15. vec4 p = czm_computePosition();\n\
  16. \n\
  17. v_positionMC = position3DHigh + position3DLow; // position in model coordinates\n\
  18. v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n\
  19. v_st = st;\n\
  20. \n\
  21. gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  22. }\n\
  23. ";
  24. });