/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import{subclass as r}from"../../../core/accessorSupport/decorators.js";import{a as o}from"../../../chunks/SimpleAtmosphere.glsl.js";import{glLayout as t}from"../support/buffer/glUtil.js";import{newLayout as i}from"../support/buffer/InterleavedLayout.js";import{ReloadableShader as s}from"../webgl-engine/core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as n}from"../webgl-engine/core/shaderTechnique/ShaderTechnique.js";import{makePipelineState as p,defaultColorWrite as m,backFaceCullingParams as l,unpremultipliedAlphaToPremultipliedAlpha as c}from"../../webgl/renderState.js";let a=class extends n{constructor(e,r){super(e,r,t(u)),this.shader=new s(o,()=>import("./SimpleAtmosphere.glsl.js"))}initializePipeline(e){const r=1===e.geometry;return p({blending:c,culling:r?l:void 0,depthTest:{func:515},colorWrite:m})}};a=e([r("esri.views.3d.environment.SimpleAtmosphereTechnique")],a);const u=i().vec3f("position").freeze();export{a as SimpleAtmosphereTechnique,u as layout};
