@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.52 kB
JavaScript
import{f as e}from"../../../../chunks/vec4f64.js";import{NoParameters as t}from"../core/shaderModules/interfaces.js";import{ReloadableShaderModule as r}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as i}from"../core/shaderTechnique/ShaderTechnique.js";import{Default3D as o}from"../lib/DefaultVertexAttributeLocations.js";import{Program as s}from"../lib/Program.js";import{ShadowConfiguration as a}from"./ShadowConfiguration.js";import{S as n}from"../../../../chunks/ShadowHighlight.glsl.js";import{ContextType as h}from"../../../webgl/context-util.js";import{BlendFactor as l,PrimitiveType as m}from"../../../webgl/enums.js";import{makePipelineState as c,separateBlendingParams as d,defaultColorWriteParams as u}from"../../../webgl/renderState.js";class p extends t{constructor(){super(...arguments),this.shadowColor=e(1,0,1,1),this.shadowOpacity=.2,this.occludedShadowOpacity=.1,this.opacityElevation=1,this.dayNightTerminator=1}}class f extends i{constructor(e){super(e,new a,(()=>this.destroy()))}initializeConfiguration(e,t){t.hasWebGL2Context=e.rctx.type===h.WEBGL2}initializeProgram(e){return new s(e.rctx,f.shader.get().build(this.configuration),o)}initializePipeline(){return c({blending:d(l.SRC_ALPHA,l.ONE,l.ONE_MINUS_SRC_ALPHA,l.ONE_MINUS_SRC_ALPHA),colorWrite:u,depthTest:null,depthWrite:null})}get primitiveType(){return m.TRIANGLE_STRIP}}f.shader=new r(n,(()=>import("./ShadowHighlight.glsl.js")));export{p as ShadowHighlightPassParameters,f as ShadowHighlightTechnique};