PerInstanceColorAppearanceVS.js 546 B

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