AllMaterialAppearanceVS.js 1008 B

12345678910111213141516171819202122232425262728293031
  1. //This file is automatically rebuilt by the Cesium build process.
  2. /*global define*/
  3. define(function() {
  4. "use strict";
  5. return "attribute vec3 position3DHigh;\n\
  6. attribute vec3 position3DLow;\n\
  7. attribute vec3 normal;\n\
  8. attribute vec3 tangent;\n\
  9. attribute vec3 binormal;\n\
  10. attribute vec2 st;\n\
  11. \n\
  12. varying vec3 v_positionEC;\n\
  13. varying vec3 v_normalEC;\n\
  14. varying vec3 v_tangentEC;\n\
  15. varying vec3 v_binormalEC;\n\
  16. varying vec2 v_st;\n\
  17. \n\
  18. void main() \n\
  19. {\n\
  20. vec4 p = czm_computePosition();\n\
  21. \n\
  22. v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n\
  23. v_normalEC = czm_normal * normal; // normal in eye coordinates\n\
  24. v_tangentEC = czm_normal * tangent; // tangent in eye coordinates\n\
  25. v_binormalEC = czm_normal * binormal; // binormal in eye coordinates\n\
  26. v_st = st;\n\
  27. \n\
  28. gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  29. }\n\
  30. ";
  31. });