AllMaterialAppearanceVS.js 898 B

12345678910111213141516171819202122232425262728
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "in vec3 position3DHigh;\n\
  3. in vec3 position3DLow;\n\
  4. in vec3 normal;\n\
  5. in vec3 tangent;\n\
  6. in vec3 bitangent;\n\
  7. in vec2 st;\n\
  8. in float batchId;\n\
  9. \n\
  10. out vec3 v_positionEC;\n\
  11. out vec3 v_normalEC;\n\
  12. out vec3 v_tangentEC;\n\
  13. out vec3 v_bitangentEC;\n\
  14. out 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. ";