/* 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{glsl as r}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as o}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as s}from"../views/webgl/NoParameters.js";import{ShaderBuilder as a}from"../views/webgl/ShaderBuilder.js";class i extends s{}function n(){const s=new a;return s.include(e),s.fragment.uniforms.add(new t("colorTexture",e=>e.color),new o("depthTexture",e=>e.mainDepth)),s.fragment.main.add(r`float depthSample = texture(depthTexture, uv).r;
if (depthSample != 1.0 ) {
fragColor = vec4(0);
return;
}
fragColor = texture(colorTexture, uv);`),s}const l=Object.freeze(Object.defineProperty({__proto__:null,AtmosphereCompositingPassParameters:i,build:n},Symbol.toStringTag,{value:"Module"}));export{i as A,l as a,n as b};
