AllMaterialAppearanceVS.js 967 B

12345678910111213141516171819202122232425262728
  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. \n\
  10. varying vec3 v_positionEC;\n\
  11. varying vec3 v_normalEC;\n\
  12. varying vec3 v_tangentEC;\n\
  13. varying vec3 v_bitangentEC;\n\
  14. varying vec2 v_st;\n\
  15. \n\
  16. void main()\n\
  17. {\n\
  18. vec4 p = czm_computePosition();\n\
  19. \n\
  20. v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n\
  21. v_normalEC = czm_normal * normal; // normal in eye coordinates\n\
  22. v_tangentEC = czm_normal * tangent; // tangent in eye coordinates\n\
  23. v_bitangentEC = czm_normal * bitangent; // bitangent in eye coordinates\n\
  24. v_st = st;\n\
  25. \n\
  26. gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  27. }\n\
  28. ";