TexturedMaterialAppearanceVS.js 703 B

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