/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{colorGamma as o}from"../../../../../../colorUtils.js";import{glsl as e}from"../../shaderModules/glsl.js";function r(r){r.constants.add("GAMMA","float",o).constants.add("INV_GAMMA","float",1/o).code.add(e`vec3 delinearizeGamma(vec3 color) {
return pow(color, vec3(INV_GAMMA));
}
vec4 delinearizeGamma(vec4 color) {
return vec4(delinearizeGamma(color.rgb), color.a);
}
vec3 linearizeGamma(vec3 color) {
return pow(color, vec3(GAMMA));
}`)}export{r as Gamma};
