SkyAtmosphereVS.js 578 B

123456789101112131415161718192021
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "attribute vec4 position;\n\
  3. \n\
  4. varying vec3 v_outerPositionWC;\n\
  5. \n\
  6. #ifndef PER_FRAGMENT_ATMOSPHERE\n\
  7. varying vec3 v_mieColor;\n\
  8. varying vec3 v_rayleighColor;\n\
  9. #endif\n\
  10. \n\
  11. void main(void)\n\
  12. {\n\
  13. vec4 positionWC = czm_model * position;\n\
  14. \n\
  15. #ifndef PER_FRAGMENT_ATMOSPHERE\n\
  16. calculateMieColorAndRayleighColor(positionWC.xyz, v_mieColor, v_rayleighColor);\n\
  17. #endif\n\
  18. v_outerPositionWC = positionWC.xyz;\n\
  19. gl_Position = czm_modelViewProjection * position;\n\
  20. }\n\
  21. ";