/*
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/Precipitation.glsl","../webgl-engine/core/shaderModules/interfaces","../webgl-engine/core/shaderTechnique/ReloadableShaderModule","../webgl-engine/core/shaderTechnique/ShaderTechnique","../webgl-engine/lib/Program","../webgl-engine/lib/VertexAttribute","../../webgl/enums","../../webgl/renderState"],(function(e,t,i,r,n,a,o,l,u,s,c){"use strict";let d=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).time=0,t.radius=1,t}return i._inheritsLoose(t,e),t}(n.NoParameters),g=function(e){function t(){return e.apply(this,arguments)||this}i._inheritsLoose(t,e);var r=t.prototype;return r.initializeProgram=function(e){const i=t.shader.get().build(this.configuration);return new l.Program(e.rctx,i,t.attributeLocation)},r.initializePipeline=function(){return c.makePipelineState({blending:c.separateBlendingParams(s.BlendFactor.ONE,s.BlendFactor.ONE,s.BlendFactor.ONE_MINUS_SRC_ALPHA,s.BlendFactor.ONE_MINUS_SRC_ALPHA),depthTest:{func:s.CompareFunction.LEQUAL},colorWrite:c.defaultColorWriteParams})},t}(o.ShaderTechnique);g.shader=new a.ReloadableShaderModule(r.Precipitation,(()=>new Promise(((t,i)=>e(["./Precipitation.glsl"],t,i))))),g.attributeLocation=new Map([[u.VertexAttribute.POSITION,0],[u.VertexAttribute.INSTANCEFEATUREATTRIBUTE,1]]),t.PrecipitationPassParameters=d,t.PrecipitationTechnique=g,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
