UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 946 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{ReloadableShaderModule as e}from"../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as r}from"../core/shaderTechnique/ShaderTechnique.js";import{L as t}from"../../../../chunks/LineCallout.glsl.js";import{CompareFunction as o,BlendFactor as s}from"../../../webgl/enums.js";import{makePipelineState as i,defaultDepthWrite as n,defaultColorWrite as l,separateBlendingParams as h}from"../../../webgl/renderState.js";class p extends r{constructor(r,o){super(r,o,new e(t,(()=>import("./LineCallout.glsl.js"))))}initializePipeline(e){const{hudDepth:r,terrainDepthTest:t}=e,p={func:t?o.ALWAYS:o.LESS};return i(r?{depthTest:p,depthWrite:n}:{blending:h(s.ONE,s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA),depthTest:p,colorWrite:l})}}export{p as LineCalloutTechnique};