/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["require","exports","../../../chunks/_rollupPluginBabelHelpers","../../../chunks/tslib.es6","../../../chunks/Fog.glsl","../webgl-engine/core/shaderTechnique/ReloadableShaderModule","../webgl-engine/core/shaderTechnique/ShaderTechnique","../webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration","../webgl-engine/lib/DefaultVertexAttributeLocations","../webgl-engine/lib/Program","../../webgl/enums","../../webgl/renderState"],(function(e,n,r,i,t,a,o,l,u,c,s,d){"use strict";let g=function(e){function n(){return e.apply(this,arguments)||this}r._inheritsLoose(n,e);var i=n.prototype;return i.initializeProgram=function(e){const r=n.shader.get().build(this.configuration);return new c.Program(e.rctx,r,u.Default3D)},i.initializePipeline=function(){return this.configuration.haze?d.makePipelineState({blending:d.separateBlendingParams(s.BlendFactor.ONE,s.BlendFactor.ZERO,s.BlendFactor.ONE_MINUS_SRC_COLOR,s.BlendFactor.ONE),colorWrite:d.defaultColorWriteParams}):d.makePipelineState({blending:d.separateBlendingParams(s.BlendFactor.SRC_ALPHA,s.BlendFactor.ZERO,s.BlendFactor.ONE_MINUS_SRC_ALPHA,s.BlendFactor.ONE),colorWrite:d.defaultColorWriteParams})},n}(o.ShaderTechnique);g.shader=new a.ReloadableShaderModule(t.Fog,(()=>new Promise(((n,r)=>e(["./Fog.glsl"],n,r)))));let h=function(e){function n(){var n;return(n=e.apply(this,arguments)||this).haze=!1,n}return r._inheritsLoose(n,e),n}(l.ShaderTechniqueConfiguration);i.__decorate([l.parameter()],h.prototype,"haze",void 0),n.FogTechnique=g,n.FogTechniqueConfiguration=h,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
