AllMaterialAppearanceVS.js 732 B

123456789101112131415161718192021222324
  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 vec3 tangent;\n\
  6. attribute vec3 bitangent;\n\
  7. attribute vec2 st;\n\
  8. attribute float batchId;\n\
  9. varying vec3 v_positionEC;\n\
  10. varying vec3 v_normalEC;\n\
  11. varying vec3 v_tangentEC;\n\
  12. varying vec3 v_bitangentEC;\n\
  13. varying vec2 v_st;\n\
  14. void main()\n\
  15. {\n\
  16. vec4 p = czm_computePosition();\n\
  17. v_positionEC = (czm_modelViewRelativeToEye * p).xyz;\n\
  18. v_normalEC = czm_normal * normal;\n\
  19. v_tangentEC = czm_normal * tangent;\n\
  20. v_bitangentEC = czm_normal * bitangent;\n\
  21. v_st = st;\n\
  22. gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  23. }\n\
  24. ";