@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.38 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as r}from"../../../core/accessorSupport/decorators.js";import{create as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as s}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{ChapmanApproximationPassParameters as t}from"./ChapmanApproximation.glsl.js";import{C as i}from"../../../chunks/ChapmanAtmosphere.glsl.js";import{ReloadableShader as n}from"../webgl-engine/core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as a}from"../webgl-engine/core/shaderTechnique/ShaderTechnique.js";import{Pos2TexF16 as m}from"../webgl-engine/lib/DefaultVertexBufferLayouts.js";import{makePipelineState as c,defaultColorWrite as l,copySource as p,simpleBlendingParams as d}from"../../webgl/renderState.js";class h extends t{constructor(){super(...arguments),this.innerFadeDistance=0,this.altitudeFade=0,this.backgroundColor=o(),this.undergroundColor=s()}}let u=class extends a{constructor(e,r){super(e,r,m),this.shader=new n(i,()=>import("./ChapmanAtmosphere.glsl.js"))}initializePipeline(e){return c({blending:e.reduced?p:d(770,771),depthTest:{func:e.reduced?519:515},colorWrite:l})}};u=e([r("esri.views.3d.environment.ChapmanAtmosphereTechnique")],u);export{h as ChapmanAtmospherePassParameters,u as ChapmanAtmosphereTechnique};