BasicMaterialAppearanceVS.js 641 B

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