czm_moonDirectionEC

czm_moonDirectionEC

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

Example
// GLSL declaration
uniform vec3 czm_moonDirectionEC;

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