czm_XYZToRGB
Converts a CIE Yxy color to RGB.
The conversion is described in Luminance Transform
Parameters:
Name | Type | Description |
---|---|---|
Yxy |
vec3 | The color in CIE Yxy. |
Returns:
vec3
The color in RGB.
Example
vec3 xyz = czm_RGBToXYZ(rgb); xyz.x = max(xyz.x - luminanceThreshold, 0.0); rgb = czm_XYZToRGB(xyz);