UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 909 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{RayMarchingSteps as s}from"./CloudsTechniqueConfiguration.js";class i{constructor(s,i,t,n,e,o,h,r,a=.5){this.coverage=s,this.density=i,this.absorption=t,this.cloudSize=n,this.detailSize=e,this.smoothness=o,this.cloudHeight=h,this.raymarchingSteps=r,this.median=a}}const t={sunny:new i([0,.6],[.03,.03],[0,0],[.9,.9],[.8,.8],[.7,.7],[.05,.05],s.SIXTEEN),cloudy:new i([.3,.65],[.2,.4],[0,0],[.85,.85],[.75,.75],[.3,.4],[1,1],s.TWOHUNDRED,.6),rainy:new i([.6,.8],[.5,.8],[.1,.5],[.9,.9],[.75,.75],[.5,.5],[1,1],s.TWOHUNDRED,.4),snowy:new i([.25,.75],[.3,.3],[0,0],[.95,.95],[.7,.7],[.69,.75],[.3,1],s.HUNDRED,.65),foggy:new i([.8,.8],[.5,.5],[0,0],[.95,.95],[.9,.9],[.55,.55],[.3,.3],s.SIXTEEN)};t.default=t.sunny;export{i as CloudPreset,t as cloudPresets};