/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{FloatPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as o}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DPassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as t}from"../views/webgl/NoParameters.js";import{ShaderBuilder as i}from"../views/webgl/ShaderBuilder.js";class n extends t{constructor(){super(...arguments),this.overlayIndex=0,this.opacity=1}}function d(){const t=new i;return t.include(e),t.fragment.uniforms.add(new a("tex",e=>e.texture)),t.fragment.uniforms.add(new s("overlayIdx",e=>e.overlayIndex)),t.fragment.uniforms.add(new r("opacity",e=>e.opacity)),t.fragment.main.add(o`vec2 overlayUV = overlayIdx == 0 ? vec2(uv.x * 0.5, uv.y) : vec2(uv.x * 0.5 + 0.5, uv.y);
fragColor = texture(tex, overlayUV) * opacity;`),t}const l=Object.freeze(Object.defineProperty({__proto__:null,OverlayCompositingPassParameters:n,build:d},Symbol.toStringTag,{value:"Module"}));export{n as O,l as a,d as b};
