@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.16 kB
JavaScript
/*
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{blending as t}from"../lib/OrderIndependentTransparency.js";import{VertexAttribute as o}from"../lib/VertexAttribute.js";import{M as n}from"../../../../chunks/MeasurementArrow.glsl.js";import{PrimitiveType as s,CompareFunction as i}from"../../../webgl/enums.js";import{makePipelineState as l,defaultColorWrite as p,defaultDepthWrite as a}from"../../../webgl/renderState.js";class m extends r{constructor(r,t){super(r,t,new e(n,(()=>import("./MeasurementArrow.glsl.js"))),u),this.primitiveType=s.TRIANGLE_STRIP}initializePipeline(e){return l({blending:e.transparent?t(e.oitPass):null,polygonOffset:e.polygonOffsetEnabled?{factor:0,units:-4}:null,depthTest:{func:i.LESS},depthWrite:a,colorWrite:p})}}const u=new Map([[o.POSITION,0],[o.NORMAL,1],[o.UV0,2],[o.LENGTH,3]]);export{m as MeasurementArrowTechnique,u as vertexAttributeLocations};