UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.18 kB
import{f as e}from"../../../../chunks/vec4f64.js";import{NoParameters as r}from"../core/shaderModules/interfaces.js";import{ReloadableShaderModule as i}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as o}from"../core/shaderTechnique/ShaderTechnique.js";import{Default3D as t}from"../lib/DefaultVertexAttributeLocations.js";import{Program as s}from"../lib/Program.js";import{S as a}from"../../../../chunks/SlicePlaneMaterial.glsl.js";import{BlendFactor as l,CompareFunction as n}from"../../../webgl/enums.js";import{makePipelineState as c,separateBlendingParams as m,defaultColorWriteParams as d}from"../../../webgl/renderState.js";class h extends r{constructor(){super(...arguments),this.backgroundColor=e(1,0,0,.5),this.gridColor=e(0,1,0,.5),this.gridWidth=4}}class u extends o{initializeProgram(e){return new s(e.rctx,u.shader.get().build(this.configuration),t)}initializePipeline(){return c({blending:m(l.ONE,l.ONE,l.ONE_MINUS_SRC_ALPHA,l.ONE_MINUS_SRC_ALPHA),depthTest:{func:n.LESS},colorWrite:d})}}u.shader=new i(a,(()=>import("./SlicePlaneMaterial.glsl.js")));export{h as SlicePlaneMaterialPassParameters,u as SlicePlaneMaterialTechnique};