inverseGamma.js 405 B

1234567891011121314
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * Converts a color in linear space to RGB space.\n\
  4. *\n\
  5. * @name czm_inverseGamma\n\
  6. * @glslFunction\n\
  7. *\n\
  8. * @param {vec3} color The color in linear space.\n\
  9. * @returns {vec3} The color in RGB space.\n\
  10. */\n\
  11. vec3 czm_inverseGamma(vec3 color) {\n\
  12. return pow(color, vec3(1.0 / czm_gamma));\n\
  13. }\n\
  14. ";