UNPKG

@arcgis/core

Version:

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

8 lines (7 loc) 1.12 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{RgbNormalizedDepthEncoding as t}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbNormalizedDepthEncoding.glsl.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as o}from"../views/webgl/NoParameters.js";import{ShaderBuilder as a}from"../views/webgl/ShaderBuilder.js";class i extends o{}function l(){const o=new a;o.include(e);const i=o.fragment;return i.uniforms.add(new r("splatOutputDepth",e=>e.splatDepth)),i.include(t),i.main.add(s`vec4 splatDepth = texture(splatOutputDepth, uv); float depth = decodeRGBToNormalizedDepth(splatDepth.xyz); if(splatDepth.a < 1.0) { discard; } gl_FragDepth = depth;`),o}const p=Object.freeze(Object.defineProperty({__proto__:null,GaussianSplatDepthCompositionPassParameters:i,build:l},Symbol.toStringTag,{value:"Module"}));export{i as G,p as S,l as b};