ellipsoidWgs84TextureCoordinates.js 365 B

123456789101112
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * DOC_TBA\n\
  4. *\n\
  5. * @name czm_ellipsoidWgs84TextureCoordinates\n\
  6. * @glslFunction\n\
  7. */\n\
  8. vec2 czm_ellipsoidWgs84TextureCoordinates(vec3 normal)\n\
  9. {\n\
  10. return vec2(atan(normal.y, normal.x) * czm_oneOverTwoPi + 0.5, asin(normal.z) * czm_oneOverPi + 0.5);\n\
  11. }\n\
  12. ";