UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.23 kB
import{P as e}from"../../../chunks/Precipitation.glsl.js";import{NoParameters as i}from"../webgl-engine/core/shaderModules/interfaces.js";import{ReloadableShaderModule as r}from"../webgl-engine/core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as t}from"../webgl-engine/core/shaderTechnique/ShaderTechnique.js";import{Program as s}from"../webgl-engine/lib/Program.js";import{VertexAttribute as n}from"../webgl-engine/lib/VertexAttribute.js";import{BlendFactor as o,CompareFunction as l}from"../../webgl/enums.js";import{makePipelineState as a,separateBlendingParams as m,defaultColorWriteParams as c}from"../../webgl/renderState.js";class g extends i{constructor(){super(...arguments),this.time=0,this.radius=1,this.width=500,this.opacity=1}}class d extends t{initializeProgram(e){return new s(e.rctx,d.shader.get().build(this.configuration),h)}initializePipeline(){return a({blending:m(o.ONE,o.ONE,o.ONE_MINUS_SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA),depthTest:{func:l.LEQUAL},colorWrite:c})}}d.shader=new r(e,(()=>import("./Precipitation.glsl.js")));const h=new Map([[n.POSITION,0],[n.INSTANCEFEATUREATTRIBUTE,1]]);export{g as PrecipitationPassParameters,d as PrecipitationTechnique,h as attributeLocations};