/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{EmissionDimming as r}from"../views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as o}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as i}from"../views/webgl/NoParameters.js";import{ShaderBuilder as a}from"../views/webgl/ShaderBuilder.js";class t extends i{}function l(){const i=new a;i.include(e),i.fragment.include(r);const{fragment:t,outputs:l}=i;return t.uniforms.add(new o("colorTexture",e=>e.colorTexture),new o("alphaTexture",e=>e.alphaTexture)),l.add("fragColor","vec4",0),l.add("fragEmission","vec4",1),t.main.add(s`float srcAlpha = texture(alphaTexture, uv).r;
vec4 srcColor = texture(colorTexture, uv);
vec3 dimming = emissionDimming(srcColor.rgb, srcAlpha);
fragEmission = vec4(dimming, 0.0);`),i}const n=Object.freeze(Object.defineProperty({__proto__:null,OITDimPassParameters:t,build:l},Symbol.toStringTag,{value:"Module"}));export{t as O,n as a,l as b};
