17 lines
326 B
GLSL
17 lines
326 B
GLSL
/**
|
|
* A built-in GLSL floating-point constant for <code>1/pi</code>.
|
|
*
|
|
* @alias czm_oneOverPi
|
|
* @glslConstant
|
|
*
|
|
* @see CesiumMath.ONE_OVER_PI
|
|
*
|
|
* @example
|
|
* // GLSL declaration
|
|
* const float czm_oneOverPi = ...;
|
|
*
|
|
* // Example
|
|
* float pi = 1.0 / czm_oneOverPi;
|
|
*/
|
|
const float czm_oneOverPi = 0.3183098861837907;
|