UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 952 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{CloudsTextureChannels as e}from"./Clouds.js";import{a as r}from"../../../chunks/Clouds.glsl.js";import{ReloadableShaderModule as o}from"../webgl-engine/core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as s}from"../webgl-engine/core/shaderTechnique/ShaderTechnique.js";import{BlendOperation as i,BlendFactor as n,CompareFunction as l}from"../../webgl/enums.js";import{makePipelineState as t,simpleBlendingParams as m,defaultColorWrite as u}from"../../webgl/renderState.js";class d extends s{constructor(e,s){super(e,s,new o(r,(()=>import("./Clouds.glsl.js"))))}initializePipeline(r){return t({blending:m(n.CONSTANT_COLOR,n.ONE_MINUS_CONSTANT_COLOR,i.ADD,r.writeTextureChannels===e.RG?[1,1,0,0]:[0,0,1,1]),depthTest:{func:l.LEQUAL},colorWrite:u})}}export{d as CloudsTechnique};