/*
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/ChapmanAtmosphere.glsl","../webgl-engine/core/shaderTechnique/ReloadableShaderModule","../webgl-engine/core/shaderTechnique/ShaderTechnique","../webgl-engine/lib/DefaultVertexAttributeLocations","../webgl-engine/lib/Program","../../webgl/enums","../../webgl/renderState"],(function(e,n,r,t,a,i,l,o,u,s){"use strict";let d=function(e){function n(){return e.apply(this,arguments)||this}r._inheritsLoose(n,e);var t=n.prototype;return t.initializeProgram=function(e){const r=n.shader.get().build(this.configuration);return new o.Program(e.rctx,r,l.Default3D)},t.initializePipeline=function(){return this.configuration.haze?s.makePipelineState({blending:s.separateBlendingParams(u.BlendFactor.ONE,u.BlendFactor.ZERO,u.BlendFactor.ONE_MINUS_SRC_COLOR,u.BlendFactor.ONE),colorWrite:s.defaultColorWriteParams}):s.makePipelineState({blending:s.separateBlendingParams(u.BlendFactor.SRC_ALPHA,u.BlendFactor.ONE,u.BlendFactor.ONE_MINUS_SRC_ALPHA,u.BlendFactor.ONE_MINUS_SRC_ALPHA),depthTest:{func:u.CompareFunction.LEQUAL},colorWrite:s.defaultColorWriteParams})},n}(i.ShaderTechnique);d.shader=new a.ReloadableShaderModule(t.ChapmanAtmosphereShader,(()=>new Promise(((n,r)=>e(["./ChapmanAtmosphere.glsl"],n,r))))),n.ChapmanAtmosphereTechnique=d,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
