/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{ColorConversion as o}from"./ColorConversion.glsl.js";import{oitResolution as r}from"../../../shaders/oitResolution.glsl.js";function l(l,c){l.include(o),l.include(r,c),l.code.add("\n    vec3 emissionDimming(in vec3 srcColor, float srcAlpha) {\n      vec3 color = min(srcColor + vec3(1.0 - srcAlpha), 1.0);\n      float m = max(color.r, max(color.g, color.b));\n      return m > 0.0 ? color / m : vec3(1.0);\n    }\n  ")}export{l as emissionDimming};
