oneOverPi.glsl 326 B

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