oneOverTwoPi.glsl 344 B

12345678910111213141516
  1. /**
  2. * A built-in GLSL floating-point constant for <code>1/2pi</code>.
  3. *
  4. * @alias czm_oneOverTwoPi
  5. * @glslConstant
  6. *
  7. * @see CesiumMath.ONE_OVER_TWO_PI
  8. *
  9. * @example
  10. * // GLSL declaration
  11. * const float czm_oneOverTwoPi = ...;
  12. *
  13. * // Example
  14. * float pi = 2.0 * czm_oneOverTwoPi;
  15. */
  16. const float czm_oneOverTwoPi = 0.15915494309189535;