DSDSWeb/static/js/Cesium-1.53/Source/Shaders/Builtin/Functions/inverseGamma.glsl

13 lines
284 B
Plaintext
Raw Normal View History

2024-07-11 18:02:47 +08:00
/**
* Converts a color in linear space to RGB space.
*
* @name czm_inverseGamma
* @glslFunction
*
* @param {vec3} color The color in linear space.
* @returns {vec3} The color in RGB space.
*/
vec3 czm_inverseGamma(vec3 color) {
return pow(color, vec3(1.0 / czm_gamma));
}