czm_saturation
Adjusts the saturation of a color.
Parameters:
Name | Type | Description |
---|---|---|
rgb |
vec3 | The color. |
adjustment |
float | The amount to adjust the saturation of the color. |
Returns:
float
The color with the saturation adjusted.
Example
vec3 greyScale = czm_saturation(color, 0.0); vec3 doubleSaturation = czm_saturation(color, 2.0);