czm_sceneMode
An automatic GLSL uniform representing the current SceneMode enumeration, expressed
as a float.
Like all automatic uniforms, czm_sceneMode
does not need to be explicitly declared.
However, it can be explicitly declared when a shader is also used by other applications such
as a third-party authoring tool.
Example
// GLSL declaration uniform float czm_sceneMode; // Example if (czm_sceneMode == czm_sceneMode2D) { eyeHeightSq = czm_eyeHeight2D.y; }