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