czm_luminance
Computes the luminance of a color.
Parameters:
Name | Type | Description |
---|---|---|
rgb |
vec3 | The color. |
Returns:
float
The luminance.
Example
float light = czm_luminance(vec3(0.0)); // 0.0 float dark = czm_luminance(vec3(1.0)); // ~1.0