@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.75 kB
JavaScript
import{_ as e}from"../../../chunks/tslib.es6.js";import{Z as r}from"../../../chunks/vec3f64.js";import{TileBlendTechniqueConfiguration as i}from"./TileBlendTechniqueConfiguration.js";import{TileCompositePassParameters as o}from"../webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js";import{B as t,a as n}from"../../../chunks/BlendLayers.glsl.js";import{ReloadableShaderModule as s}from"../webgl-engine/core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as l}from"../webgl-engine/core/shaderTechnique/ShaderTechnique.js";import{parameter as a}from"../webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js";import{Default3D as c}from"../webgl-engine/lib/DefaultVertexAttributeLocations.js";import{Program as u}from"../webgl-engine/lib/Program.js";import{ContextType as g}from"../../webgl/context-util.js";import{BlendFactor as m}from"../../webgl/enums.js";import{makePipelineState as h,simpleBlendingParams as b,defaultColorWriteParams as d}from"../../webgl/renderState.js";class p extends o{constructor(){super(...arguments),this.opacity=1,this.baseOpacity=1,this.texture=null,this.fboTexture=null,this.backgroundColor=r}}class f extends l{initializeConfiguration(e,r){r.hasWebGL2Context=e.rctx.type===g.WEBGL2}initializeProgram(e){return new u(e.rctx,f.shader.get().build(this.configuration),c)}initializePipeline(){return h({blending:b(m.ONE,m.ONE_MINUS_SRC_ALPHA),colorWrite:d})}}f.shader=new s(t,(()=>import("../webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js")));class j extends i{constructor(){super(...arguments),this.background=n.BelowLayer}}e([a()],j.prototype,"background",void 0);export{p as BlendLayersPassParameters,f as BlendLayersTechnique,j as BlendLayersTechniqueConfiguration};