czm_sunDirectionEC

czm_sunDirectionEC

An automatic GLSL uniform representing the normalized direction to the sun in eye coordinates. This is commonly used for directional lighting computations.

Example
// GLSL declaration
uniform vec3 czm_sunDirectionEC;

// Example
float diffuse = max(dot(czm_sunDirectionEC, normalEC), 0.0);
See:
Source: