Add existing to tracked

This commit is contained in:
Jay
2026-08-11 09:53:42 -04:00
parent afe07f3055
commit ffd6e3d73c
8531 changed files with 4396230 additions and 0 deletions
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for converting radians to degrees.
*
* @alias czm_degreesPerRadian
* @glslConstant
*
* @see CesiumMath.DEGREES_PER_RADIAN
*
* @example
* // GLSL declaration
* const float czm_degreesPerRadian = ...;
*
* // Example
* float deg = czm_degreesPerRadian * rad;
*/
const float czm_degreesPerRadian = 57.29577951308232;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for converting radians to degrees.\n\
*\n\
* @alias czm_degreesPerRadian\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.DEGREES_PER_RADIAN\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_degreesPerRadian = ...;\n\
*\n\
* // Example\n\
* float deg = czm_degreesPerRadian * rad;\n\
*/\n\
const float czm_degreesPerRadian = 57.29577951308232;\n\
";
@@ -0,0 +1,14 @@
/**
* A built-in GLSL vec2 constant for defining the depth range.
* This is a workaround to a bug where IE11 does not implement gl_DepthRange.
*
* @alias czm_depthRange
* @glslConstant
*
* @example
* // GLSL declaration
* float depthRangeNear = czm_depthRange.near;
* float depthRangeFar = czm_depthRange.far;
*
*/
const czm_depthRangeStruct czm_depthRange = czm_depthRangeStruct(0.0, 1.0);
@@ -0,0 +1,16 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL vec2 constant for defining the depth range.\n\
* This is a workaround to a bug where IE11 does not implement gl_DepthRange.\n\
*\n\
* @alias czm_depthRange\n\
* @glslConstant\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* float depthRangeNear = czm_depthRange.near;\n\
* float depthRangeFar = czm_depthRange.far;\n\
*\n\
*/\n\
const czm_depthRangeStruct czm_depthRange = czm_depthRangeStruct(0.0, 1.0);\n\
";
@@ -0,0 +1,7 @@
/**
* 0.1
*
* @name czm_epsilon1
* @glslConstant
*/
const float czm_epsilon1 = 0.1;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.1\n\
*\n\
* @name czm_epsilon1\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon1 = 0.1;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.01
*
* @name czm_epsilon2
* @glslConstant
*/
const float czm_epsilon2 = 0.01;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.01\n\
*\n\
* @name czm_epsilon2\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon2 = 0.01;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.001
*
* @name czm_epsilon3
* @glslConstant
*/
const float czm_epsilon3 = 0.001;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.001\n\
*\n\
* @name czm_epsilon3\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon3 = 0.001;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.0001
*
* @name czm_epsilon4
* @glslConstant
*/
const float czm_epsilon4 = 0.0001;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.0001\n\
*\n\
* @name czm_epsilon4\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon4 = 0.0001;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.00001
*
* @name czm_epsilon5
* @glslConstant
*/
const float czm_epsilon5 = 0.00001;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.00001\n\
*\n\
* @name czm_epsilon5\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon5 = 0.00001;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.000001
*
* @name czm_epsilon6
* @glslConstant
*/
const float czm_epsilon6 = 0.000001;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.000001\n\
*\n\
* @name czm_epsilon6\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon6 = 0.000001;\n\
";
@@ -0,0 +1,7 @@
/**
* 0.0000001
*
* @name czm_epsilon7
* @glslConstant
*/
const float czm_epsilon7 = 0.0000001;
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* 0.0000001\n\
*\n\
* @name czm_epsilon7\n\
* @glslConstant\n\
*/\n\
const float czm_epsilon7 = 0.0000001;\n\
";
@@ -0,0 +1,7 @@
/**
* DOC_TBA
*
* @name czm_infinity
* @glslConstant
*/
const float czm_infinity = 5906376272000.0; // Distance from the Sun to Pluto in meters. TODO: What is best given lowp, mediump, and highp?
@@ -0,0 +1,9 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* DOC_TBA\n\
*\n\
* @name czm_infinity\n\
* @glslConstant\n\
*/\n\
const float czm_infinity = 5906376272000.0; // Distance from the Sun to Pluto in meters. TODO: What is best given lowp, mediump, and highp?\n\
";
@@ -0,0 +1,16 @@
/**
* 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;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>1/pi</code>.\n\
*\n\
* @alias czm_oneOverPi\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.ONE_OVER_PI\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_oneOverPi = ...;\n\
*\n\
* // Example\n\
* float pi = 1.0 / czm_oneOverPi;\n\
*/\n\
const float czm_oneOverPi = 0.3183098861837907;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>1/2pi</code>.
*
* @alias czm_oneOverTwoPi
* @glslConstant
*
* @see CesiumMath.ONE_OVER_TWO_PI
*
* @example
* // GLSL declaration
* const float czm_oneOverTwoPi = ...;
*
* // Example
* float pi = 2.0 * czm_oneOverTwoPi;
*/
const float czm_oneOverTwoPi = 0.15915494309189535;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>1/2pi</code>.\n\
*\n\
* @alias czm_oneOverTwoPi\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.ONE_OVER_TWO_PI\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_oneOverTwoPi = ...;\n\
*\n\
* // Example\n\
* float pi = 2.0 * czm_oneOverTwoPi;\n\
*/\n\
const float czm_oneOverTwoPi = 0.15915494309189535;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE}
*
* @name czm_passCesium3DTile
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTile = 6.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE}\n\
*\n\
* @name czm_passCesium3DTile\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTile = 6.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION}
*
* @name czm_passCesium3DTileClassification
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTileClassification = 7.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION}\n\
*\n\
* @name czm_passCesium3DTileClassification\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTileClassification = 7.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW}
*
* @name czm_passCesium3DTileClassificationIgnoreShow
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTileClassificationIgnoreShow = 8.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW}\n\
*\n\
* @name czm_passCesium3DTileClassificationIgnoreShow\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTileClassificationIgnoreShow = 8.0;\n\
";
@@ -0,0 +1,10 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_EDGES}
*
* @name czm_passCesium3DTileEdges
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTileEdges = 4.0;
@@ -0,0 +1,12 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_EDGES}\n\
*\n\
* @name czm_passCesium3DTileEdges\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTileEdges = 4.0;\n\
\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_EDGES_DIRECT}
*
* @name czm_passCesium3DTileEdgesDirect
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTileEdgesDirect = 12.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_EDGES_DIRECT}\n\
*\n\
* @name czm_passCesium3DTileEdgesDirect\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTileEdgesDirect = 12.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_PLANAR_FILL_ID}
*
* @name czm_passCesium3DTilePlanarFillId
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCesium3DTilePlanarFillId = 5.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_PLANAR_FILL_ID}\n\
*\n\
* @name czm_passCesium3DTilePlanarFillId\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCesium3DTilePlanarFillId = 5.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#CLASSIFICATION}
*
* @name czm_passClassification
* @glslConstant
*
* @see czm_pass
*/
const float czm_passClassification = 8.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#CLASSIFICATION}\n\
*\n\
* @name czm_passClassification\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passClassification = 8.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#COMPUTE}
*
* @name czm_passCompute
* @glslConstant
*
* @see czm_pass
*/
const float czm_passCompute = 1.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#COMPUTE}\n\
*\n\
* @name czm_passCompute\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passCompute = 1.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#ENVIRONMENT}
*
* @name czm_passEnvironment
* @glslConstant
*
* @see czm_pass
*/
const float czm_passEnvironment = 0.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#ENVIRONMENT}\n\
*\n\
* @name czm_passEnvironment\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passEnvironment = 0.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#GAUSSIAN_SPLATS}
*
* @name czm_passGaussianSplats
* @glslConstant
*
* @see czm_pass
*/
const float czm_passGaussianSplats = 12.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#GAUSSIAN_SPLATS}\n\
*\n\
* @name czm_passGaussianSplats\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passGaussianSplats = 12.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#GLOBE}
*
* @name czm_passGlobe
* @glslConstant
*
* @see czm_pass
*/
const float czm_passGlobe = 2.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#GLOBE}\n\
*\n\
* @name czm_passGlobe\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passGlobe = 2.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#OPAQUE}
*
* @name czm_passOpaque
* @glslConstant
*
* @see czm_pass
*/
const float czm_passOpaque = 9.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#OPAQUE}\n\
*\n\
* @name czm_passOpaque\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passOpaque = 9.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#OVERLAY}
*
* @name czm_passOverlay
* @glslConstant
*
* @see czm_pass
*/
const float czm_passOverlay = 13.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#OVERLAY}\n\
*\n\
* @name czm_passOverlay\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passOverlay = 13.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#TERRAIN_CLASSIFICATION}
*
* @name czm_passTerrainClassification
* @glslConstant
*
* @see czm_pass
*/
const float czm_passTerrainClassification = 3.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#TERRAIN_CLASSIFICATION}\n\
*\n\
* @name czm_passTerrainClassification\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passTerrainClassification = 3.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#TRANSLUCENT}
*
* @name czm_passTranslucent
* @glslConstant
*
* @see czm_pass
*/
const float czm_passTranslucent = 10.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#TRANSLUCENT}\n\
*\n\
* @name czm_passTranslucent\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passTranslucent = 10.0;\n\
";
@@ -0,0 +1,9 @@
/**
* The automatic GLSL constant for {@link Pass#VOXELS}
*
* @name czm_passVoxels
* @glslConstant
*
* @see czm_pass
*/
const float czm_passVoxels = 11.0;
@@ -0,0 +1,11 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The automatic GLSL constant for {@link Pass#VOXELS}\n\
*\n\
* @name czm_passVoxels\n\
* @glslConstant\n\
*\n\
* @see czm_pass\n\
*/\n\
const float czm_passVoxels = 11.0;\n\
";
+16
View File
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>Math.PI</code>.
*
* @alias czm_pi
* @glslConstant
*
* @see CesiumMath.PI
*
* @example
* // GLSL declaration
* const float czm_pi = ...;
*
* // Example
* float twoPi = 2.0 * czm_pi;
*/
const float czm_pi = 3.141592653589793;
+18
View File
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>Math.PI</code>.\n\
*\n\
* @alias czm_pi\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.PI\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_pi = ...;\n\
*\n\
* // Example\n\
* float twoPi = 2.0 * czm_pi;\n\
*/\n\
const float czm_pi = 3.141592653589793;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>pi/4</code>.
*
* @alias czm_piOverFour
* @glslConstant
*
* @see CesiumMath.PI_OVER_FOUR
*
* @example
* // GLSL declaration
* const float czm_piOverFour = ...;
*
* // Example
* float pi = 4.0 * czm_piOverFour;
*/
const float czm_piOverFour = 0.7853981633974483;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>pi/4</code>.\n\
*\n\
* @alias czm_piOverFour\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.PI_OVER_FOUR\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_piOverFour = ...;\n\
*\n\
* // Example\n\
* float pi = 4.0 * czm_piOverFour;\n\
*/\n\
const float czm_piOverFour = 0.7853981633974483;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>pi/6</code>.
*
* @alias czm_piOverSix
* @glslConstant
*
* @see CesiumMath.PI_OVER_SIX
*
* @example
* // GLSL declaration
* const float czm_piOverSix = ...;
*
* // Example
* float pi = 6.0 * czm_piOverSix;
*/
const float czm_piOverSix = 0.5235987755982988;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>pi/6</code>.\n\
*\n\
* @alias czm_piOverSix\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.PI_OVER_SIX\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_piOverSix = ...;\n\
*\n\
* // Example\n\
* float pi = 6.0 * czm_piOverSix;\n\
*/\n\
const float czm_piOverSix = 0.5235987755982988;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>pi/3</code>.
*
* @alias czm_piOverThree
* @glslConstant
*
* @see CesiumMath.PI_OVER_THREE
*
* @example
* // GLSL declaration
* const float czm_piOverThree = ...;
*
* // Example
* float pi = 3.0 * czm_piOverThree;
*/
const float czm_piOverThree = 1.0471975511965976;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>pi/3</code>.\n\
*\n\
* @alias czm_piOverThree\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.PI_OVER_THREE\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_piOverThree = ...;\n\
*\n\
* // Example\n\
* float pi = 3.0 * czm_piOverThree;\n\
*/\n\
const float czm_piOverThree = 1.0471975511965976;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>pi/2</code>.
*
* @alias czm_piOverTwo
* @glslConstant
*
* @see CesiumMath.PI_OVER_TWO
*
* @example
* // GLSL declaration
* const float czm_piOverTwo = ...;
*
* // Example
* float pi = 2.0 * czm_piOverTwo;
*/
const float czm_piOverTwo = 1.5707963267948966;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>pi/2</code>.\n\
*\n\
* @alias czm_piOverTwo\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.PI_OVER_TWO\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_piOverTwo = ...;\n\
*\n\
* // Example\n\
* float pi = 2.0 * czm_piOverTwo;\n\
*/\n\
const float czm_piOverTwo = 1.5707963267948966;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for converting degrees to radians.
*
* @alias czm_radiansPerDegree
* @glslConstant
*
* @see CesiumMath.RADIANS_PER_DEGREE
*
* @example
* // GLSL declaration
* const float czm_radiansPerDegree = ...;
*
* // Example
* float rad = czm_radiansPerDegree * deg;
*/
const float czm_radiansPerDegree = 0.017453292519943295;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for converting degrees to radians.\n\
*\n\
* @alias czm_radiansPerDegree\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.RADIANS_PER_DEGREE\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_radiansPerDegree = ...;\n\
*\n\
* // Example\n\
* float rad = czm_radiansPerDegree * deg;\n\
*/\n\
const float czm_radiansPerDegree = 0.017453292519943295;\n\
";
@@ -0,0 +1,11 @@
/**
* The constant identifier for the 2D {@link SceneMode}
*
* @name czm_sceneMode2D
* @glslConstant
* @see czm_sceneMode
* @see czm_sceneModeColumbusView
* @see czm_sceneMode3D
* @see czm_sceneModeMorphing
*/
const float czm_sceneMode2D = 2.0;
@@ -0,0 +1,13 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The constant identifier for the 2D {@link SceneMode}\n\
*\n\
* @name czm_sceneMode2D\n\
* @glslConstant\n\
* @see czm_sceneMode\n\
* @see czm_sceneModeColumbusView\n\
* @see czm_sceneMode3D\n\
* @see czm_sceneModeMorphing\n\
*/\n\
const float czm_sceneMode2D = 2.0;\n\
";
@@ -0,0 +1,11 @@
/**
* The constant identifier for the 3D {@link SceneMode}
*
* @name czm_sceneMode3D
* @glslConstant
* @see czm_sceneMode
* @see czm_sceneMode2D
* @see czm_sceneModeColumbusView
* @see czm_sceneModeMorphing
*/
const float czm_sceneMode3D = 3.0;
@@ -0,0 +1,13 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The constant identifier for the 3D {@link SceneMode}\n\
*\n\
* @name czm_sceneMode3D\n\
* @glslConstant\n\
* @see czm_sceneMode\n\
* @see czm_sceneMode2D\n\
* @see czm_sceneModeColumbusView\n\
* @see czm_sceneModeMorphing\n\
*/\n\
const float czm_sceneMode3D = 3.0;\n\
";
@@ -0,0 +1,11 @@
/**
* The constant identifier for the Columbus View {@link SceneMode}
*
* @name czm_sceneModeColumbusView
* @glslConstant
* @see czm_sceneMode
* @see czm_sceneMode2D
* @see czm_sceneMode3D
* @see czm_sceneModeMorphing
*/
const float czm_sceneModeColumbusView = 1.0;
@@ -0,0 +1,13 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The constant identifier for the Columbus View {@link SceneMode}\n\
*\n\
* @name czm_sceneModeColumbusView\n\
* @glslConstant\n\
* @see czm_sceneMode\n\
* @see czm_sceneMode2D\n\
* @see czm_sceneMode3D\n\
* @see czm_sceneModeMorphing\n\
*/\n\
const float czm_sceneModeColumbusView = 1.0;\n\
";
@@ -0,0 +1,11 @@
/**
* The constant identifier for the Morphing {@link SceneMode}
*
* @name czm_sceneModeMorphing
* @glslConstant
* @see czm_sceneMode
* @see czm_sceneMode2D
* @see czm_sceneModeColumbusView
* @see czm_sceneMode3D
*/
const float czm_sceneModeMorphing = 0.0;
@@ -0,0 +1,13 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The constant identifier for the Morphing {@link SceneMode}\n\
*\n\
* @name czm_sceneModeMorphing\n\
* @glslConstant\n\
* @see czm_sceneMode\n\
* @see czm_sceneMode2D\n\
* @see czm_sceneModeColumbusView\n\
* @see czm_sceneMode3D\n\
*/\n\
const float czm_sceneModeMorphing = 0.0;\n\
";
@@ -0,0 +1,13 @@
/**
* A built-in GLSL floating-point constant for one solar radius.
*
* @alias czm_solarRadius
* @glslConstant
*
* @see CesiumMath.SOLAR_RADIUS
*
* @example
* // GLSL declaration
* const float czm_solarRadius = ...;
*/
const float czm_solarRadius = 695500000.0;
@@ -0,0 +1,15 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for one solar radius.\n\
*\n\
* @alias czm_solarRadius\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.SOLAR_RADIUS\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_solarRadius = ...;\n\
*/\n\
const float czm_solarRadius = 695500000.0;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>3pi/2</code>.
*
* @alias czm_threePiOver2
* @glslConstant
*
* @see CesiumMath.THREE_PI_OVER_TWO
*
* @example
* // GLSL declaration
* const float czm_threePiOver2 = ...;
*
* // Example
* float pi = (2.0 / 3.0) * czm_threePiOver2;
*/
const float czm_threePiOver2 = 4.71238898038469;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>3pi/2</code>.\n\
*\n\
* @alias czm_threePiOver2\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.THREE_PI_OVER_TWO\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_threePiOver2 = ...;\n\
*\n\
* // Example\n\
* float pi = (2.0 / 3.0) * czm_threePiOver2;\n\
*/\n\
const float czm_threePiOver2 = 4.71238898038469;\n\
";
@@ -0,0 +1,16 @@
/**
* A built-in GLSL floating-point constant for <code>2pi</code>.
*
* @alias czm_twoPi
* @glslConstant
*
* @see CesiumMath.TWO_PI
*
* @example
* // GLSL declaration
* const float czm_twoPi = ...;
*
* // Example
* float pi = czm_twoPi / 2.0;
*/
const float czm_twoPi = 6.283185307179586;
+18
View File
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* A built-in GLSL floating-point constant for <code>2pi</code>.\n\
*\n\
* @alias czm_twoPi\n\
* @glslConstant\n\
*\n\
* @see CesiumMath.TWO_PI\n\
*\n\
* @example\n\
* // GLSL declaration\n\
* const float czm_twoPi = ...;\n\
*\n\
* // Example\n\
* float pi = czm_twoPi / 2.0;\n\
*/\n\
const float czm_twoPi = 6.283185307179586;\n\
";
@@ -0,0 +1,16 @@
/**
* The maximum latitude, in radians, both North and South, supported by a Web Mercator
* (EPSG:3857) projection. Technically, the Mercator projection is defined
* for any latitude up to (but not including) 90 degrees, but it makes sense
* to cut it off sooner because it grows exponentially with increasing latitude.
* The logic behind this particular cutoff value, which is the one used by
* Google Maps, Bing Maps, and Esri, is that it makes the projection
* square. That is, the rectangle is equal in the X and Y directions.
*
* The constant value is computed as follows:
* czm_pi * 0.5 - (2.0 * atan(exp(-czm_pi)))
*
* @name czm_webMercatorMaxLatitude
* @glslConstant
*/
const float czm_webMercatorMaxLatitude = 1.4844222297453324;
@@ -0,0 +1,18 @@
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* The maximum latitude, in radians, both North and South, supported by a Web Mercator\n\
* (EPSG:3857) projection. Technically, the Mercator projection is defined\n\
* for any latitude up to (but not including) 90 degrees, but it makes sense\n\
* to cut it off sooner because it grows exponentially with increasing latitude.\n\
* The logic behind this particular cutoff value, which is the one used by\n\
* Google Maps, Bing Maps, and Esri, is that it makes the projection\n\
* square. That is, the rectangle is equal in the X and Y directions.\n\
*\n\
* The constant value is computed as follows:\n\
* czm_pi * 0.5 - (2.0 * atan(exp(-czm_pi)))\n\
*\n\
* @name czm_webMercatorMaxLatitude\n\
* @glslConstant\n\
*/\n\
const float czm_webMercatorMaxLatitude = 1.4844222297453324;\n\
";