@cesium/engine
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
19 lines (18 loc) • 564 B
JavaScript
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
* Converts a linear RGB color to an sRGB color.\n\
*\n\
* @param {vec3|vec4} linearIn The color in linear color space.\n\
* @returns {vec3|vec4} The color in sRGB color space. The vector type matches the input.\n\
*/\n\
vec3 czm_linearToSrgb(vec3 linearIn) \n\
{\n\
return pow(linearIn, vec3(1.0/2.2));\n\
}\n\
\n\
vec4 czm_linearToSrgb(vec4 linearIn) \n\
{\n\
vec3 srgbOut = pow(linearIn.rgb, vec3(1.0/2.2));\n\
return vec4(srgbOut, linearIn.a);\n\
}\n\
";