UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.53 kB
import{deg2rad as e}from"../../../../core/mathUtils.js";import{f as t,c as i}from"../../../../chunks/vec3f64.js";import{create as r}from"../../../../geometry/support/lineSegment.js";import{NoParameters as s}from"../core/shaderModules/interfaces.js";import{ReloadableShaderModule as o}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as n}from"../core/shaderTechnique/ShaderTechnique.js";import{Default3D as l}from"../lib/DefaultVertexAttributeLocations.js";import{Program as a}from"../lib/Program.js";import{L as h}from"../../../../chunks/Laserlines.glsl.js";import{BlendFactor as m}from"../../../webgl/enums.js";import{makePipelineState as c,simpleBlendingParams as g,defaultColorWriteParams as d}from"../../../webgl/renderState.js";class f extends s{constructor(){super(...arguments),this.innerColor=t(1,1,1),this.innerWidth=1,this.glowColor=t(1,.5,0),this.glowWidth=8,this.glowFalloff=8,this.globalAlpha=.75,this.globalAlphaContrastBoost=2,this.angleCutoff=e(6),this.pointDistanceOrigin=i(),this.pointDistanceTarget=i(),this.lineVerticalPlaneSegment=r(),this.intersectsLineSegment=r(),this.intersectsLineRadius=3,this.heightManifoldTarget=i(),this.lineStartWorld=i(),this.lineEndWorld=i()}}class p extends n{initializeProgram(e){return new a(e.rctx,p.shader.get().build(this.configuration),l)}initializePipeline(){return c({blending:g(m.ONE,m.ONE_MINUS_SRC_ALPHA),colorWrite:d})}}p.shader=new o(h,(()=>import("./Laserlines.glsl.js")));export{f as LaserlinePassParameters,p as LaserlineTechnique};