EllipsoidSurfaceAppearanceVS.js 637 B

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