BasicMaterialAppearanceVS.js 597 B

12345678910111213141516171819
  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 vec3 normal;\n\
  5. attribute float batchId;\n\
  6. \n\
  7. varying vec3 v_positionEC;\n\
  8. varying vec3 v_normalEC;\n\
  9. \n\
  10. void main()\n\
  11. {\n\
  12. vec4 p = czm_computePosition();\n\
  13. \n\
  14. v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n\
  15. v_normalEC = czm_normal * normal; // normal in eye coordinates\n\
  16. \n\
  17. gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  18. }\n\
  19. ";