UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.16 kB
import{ReloadableShaderModule as e}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as r}from"../core/shaderTechnique/ShaderTechnique.js";import{Default3D as t}from"../lib/DefaultVertexAttributeLocations.js";import{Program as i}from"../lib/Program.js";import{b as o}from"../../../../chunks/ShadowCastAccumulate.glsl.js";import{ShadowConfiguration as s}from"./ShadowConfiguration.js";import{ContextType as n}from"../../../webgl/context-util.js";import{BlendFactor as a,PrimitiveType as l}from"../../../webgl/enums.js";import{makePipelineState as m,separateBlendingParams as u,defaultColorWriteParams as c}from"../../../webgl/renderState.js";class d extends r{constructor(e){super(e,new s,(()=>this.destroy()))}initializeConfiguration(e,r){r.hasWebGL2Context=e.rctx.type===n.WEBGL2}initializeProgram(e){return new i(e.rctx,d.shader.get().build(this.configuration),t)}initializePipeline(){return m({blending:u(a.ONE,a.ONE,a.ONE,a.ONE),colorWrite:c,depthTest:null,depthWrite:null})}get primitiveType(){return l.TRIANGLE_STRIP}}d.shader=new e(o,(()=>import("./ShadowCastAccumulate.glsl.js")));export{d as ShadowCastAccumulateTechnique};