computePosition.js 882 B

123456789101112131415161718192021222324
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * Returns a position in model coordinates relative to eye taking into\n\
  4. * account the current scene mode: 3D, 2D, or Columbus view.\n\
  5. * <p>\n\
  6. * This uses standard position attributes, <code>position3DHigh</code>, \n\
  7. * <code>position3DLow</code>, <code>position2DHigh</code>, and <code>position2DLow</code>, \n\
  8. * and should be used when writing a vertex shader for an {@link Appearance}.\n\
  9. * </p>\n\
  10. *\n\
  11. * @name czm_computePosition\n\
  12. * @glslFunction\n\
  13. *\n\
  14. * @returns {vec4} The position relative to eye.\n\
  15. *\n\
  16. * @example\n\
  17. * vec4 p = czm_computePosition();\n\
  18. * v_positionEC = (czm_modelViewRelativeToEye * p).xyz;\n\
  19. * gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
  20. *\n\
  21. * @see czm_translateRelativeToEye\n\
  22. */\n\
  23. vec4 czm_computePosition();\n\
  24. ";