@arcgis/core 4.34.0-next.64 → 4.34.0-next.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{861a6d6fe7958df36aa1.js → 06ff5f34ad9bdf9705de.js} +49 -40
- package/assets/esri/core/workers/chunks/0d82cc6905b105b3568a.js +1 -0
- package/assets/esri/core/workers/chunks/4fda6e90822bc0198b28.js +2 -0
- package/assets/esri/core/workers/chunks/88b8f33ce1cbf8a0f855.js +33 -0
- package/assets/esri/themes/base/widgets/_Attribution.scss +0 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ComponentShader.glsl.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/Fog.glsl.js +2 -2
- package/chunks/{BloomBlur.glsl.js → GlowBlur.glsl.js} +5 -5
- package/chunks/GlowComposition.glsl.js +41 -0
- package/chunks/Path.glsl.js +1 -1
- package/chunks/RealisticTree.glsl.js +18 -15
- package/config.js +1 -1
- package/interfaces.d.ts +26 -0
- package/kernel.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/FogTechniqueConfiguration.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
- package/views/3d/webgl-engine/effects/{bloom/BloomBlur.glsl.js → glow/GlowBlur.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/{bloom/BloomBlurTechniqueConfiguration.js → glow/GlowBlurTechniqueConfiguration.js} +1 -1
- package/views/3d/webgl-engine/effects/{bloom/BloomComposition.glsl.js → glow/GlowComposition.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/{bloom/BloomCompositionTechniqueConfiguration.js → glow/GlowCompositionTechniqueConfiguration.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +5 -0
- package/views/3d/webgl-engine/effects/weather/SnowCover.glsl.js +8 -2
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
- package/assets/esri/core/workers/chunks/5de07f7a09eb9f3ab666.js +0 -1
- package/assets/esri/core/workers/chunks/659f7e99b2d524ef53fb.js +0 -2
- package/assets/esri/core/workers/chunks/eacc7fccdc3fb670ac8f.js +0 -33
- package/chunks/BloomComposition.glsl.js +0 -41
- package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +0 -5
- package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +0 -5
- package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +0 -5
- /package/assets/esri/core/workers/chunks/{659f7e99b2d524ef53fb.js.LICENSE.txt → 4fda6e90822bc0198b28.js.LICENSE.txt} +0 -0
- /package/views/3d/webgl-engine/effects/{bloom/BloomPresets.glsl.js → glow/GlowPresets.glsl.js} +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3474],{4341:(t,e,r)=>{r.d(e,{I:()=>i});var n=r(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},15976:(t,e,r)=>{r.d(e,{o:()=>i});var n=r(74333);class i extends n.n{constructor(t,e){super(t,"sampler2D",2,(r,n,i)=>r.bindTexture(t,e(n,i)))}}},20304:(t,e,r)=>{r.d(e,{m:()=>i});var n=r(74333);class i extends n.n{constructor(t,e,r){super(t,"float",1,(n,i,s)=>n.setUniform1f(t,e(i,s),r))}}},25634:(t,e,r)=>{r.d(e,{m8:()=>u,NV:()=>a});var n=r(97768),i=r(74887);class s{constructor(t){this._material=t.material,this._techniques=t.techniques,this._output=t.output}dispose(){}get _stippleTextures(){return this._techniques.context?.stippleTextures}get _markerTextures(){return this._techniques.context?.markerTextures}getTechnique(t,e){return this._techniques.get(t,this._material.getConfiguration(this._output,e))}ensureResources(t){return 2}}var o=r(65786);class u extends s{constructor(t){super(t),this._numLoading=0,this._disposed=!1,this._textures=t.textures,this.updateTexture(t.textureId),this._acquire(t.normalTextureId,t=>this._textureNormal=t),this._acquire(t.emissiveTextureId,t=>this._textureEmissive=t),this._acquire(t.occlusionTextureId,t=>this._textureOcclusion=t),this._acquire(t.metallicRoughnessTextureId,t=>this._textureMetallicRoughness=t)}dispose(){super.dispose(),this._texture=(0,n.Gz)(this._texture),this._textureNormal=(0,n.Gz)(this._textureNormal),this._textureEmissive=(0,n.Gz)(this._textureEmissive),this._textureOcclusion=(0,n.Gz)(this._textureOcclusion),this._textureMetallicRoughness=(0,n.Gz)(this._textureMetallicRoughness),this._disposed=!0}ensureResources(t){return 0===this._numLoading?2:1}get textureBindParameters(){return new a(this._texture?.glTexture??null,this._textureNormal?.glTexture??null,this._textureEmissive?.glTexture??null,this._textureOcclusion?.glTexture??null,this._textureMetallicRoughness?.glTexture??null)}updateTexture(t){null!=this._texture&&t===this._texture.id||(this._texture=(0,n.Gz)(this._texture),this._acquire(t,t=>this._texture=t))}_acquire(t,e){if(null==t)return void e(null);const r=this._textures.acquire(t);if((0,i.$X)(r))return++this._numLoading,void r.then(t=>{if(this._disposed)return(0,n.Gz)(t),void e(null);e(t)}).finally(()=>--this._numLoading);e(r)}}class c extends o.Y{constructor(t=null){super(),this.textureEmissive=t}}class a extends c{constructor(t,e,r,n,i,s,o){super(r),this.texture=t,this.textureNormal=e,this.textureOcclusion=n,this.textureMetallicRoughness=i,this.scale=s,this.normalTextureTransformMatrix=o}}},27993:(t,e,r)=>{r.d(e,{F:()=>s}),r(98988);var n=r(16930),i=r(65806);function s(t,e,r,n,s){return!(null==e||null==n||t.length<2)&&(o.x=t[0],o.y=t[1],o.z=t[2],o.spatialReference=e,(0,i.g)(o,r,n,s))}const o={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n.A.WGS84,type:"point"}},28421:(t,e,r)=>{r.d(e,{J:()=>i});var n=r(74333);class i extends n.n{constructor(t,e,r){super(t,"float",2,(n,i,s)=>n.setUniform1f(t,e(i,s),r))}}},31821:(t,e,r)=>{r.d(e,{H:()=>n,If:()=>i});const n=(t,...e)=>{let r="";for(let n=0;n<e.length;n++)r+=t[n]+e[n];return r+=t[t.length-1],r};function i(t,e,r=""){return t?e:r}n.int=t=>Math.round(t).toString(),n.float=t=>t.toPrecision(8)},33079:(t,e,r)=>{r.d(e,{t:()=>i});var n=r(74333);class i extends n.n{constructor(t,e,r){super(t,"vec3",1,(n,i,s)=>n.setUniform3fv(t,e(i,s),r))}}},40710:(t,e,r)=>{r.d(e,{W:()=>i});var n=r(74333);class i extends n.n{constructor(t,e,r){super(t,"vec3",2,(n,i,s,o)=>n.setUniform3fv(t,e(i,s,o),r))}}},46140:(t,e,r)=>{r.d(e,{R:()=>i});var n=r(49186);let i=class t{constructor(t,e,r=""){this.major=t,this.minor=e,this._context=r}lessThan(t,e){return this.major<t||t===this.major&&this.minor<e}greaterEqual(t,e){return!this.lessThan(t,e)}validate(t){if(this.major!==t.major){const e=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(e+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:t})}}clone(){return new t(this.major,this.minor,this._context)}static parse(e,r=""){const[i,s]=e.split("."),o=/^\s*\d+\s*$/;if(!i?.match||!o.test(i))throw new n.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new n.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const u=parseInt(i,10),c=parseInt(s,10);return new t(u,c,r)}}},49255:(t,e,r)=>{function n(t){return 4===t||5===t||6===t||7===t||8===t}function i(t){return function(t){return o(t)||function(t){return 2===t}(t)}(t)||3===t}function s(t){return function(t){return 0===t}(t)||u(t)}function o(t){return s(t)||function(t){return 9===t||10===t}(t)}function u(t){return 1===t}function c(t){switch(t){case 2:case 4:case 5:case 6:case 7:case 8:return!0}return!1}r.d(e,{LG:()=>u,Mb:()=>o,PJ:()=>n,RN:()=>s,Vg:()=>c,iq:()=>i})},53466:(t,e,r)=>{r.d(e,{U:()=>s});var n=r(21818),i=r(31821);function s(t,e){switch(e.textureCoordinateType){case 1:return t.attributes.add("uv0","vec2"),t.varyings.add("vuv0","vec2"),void t.vertex.code.add(i.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return t.attributes.add("uv0","vec2"),t.attributes.add("uvRegion","vec4"),t.varyings.add("vuv0","vec2"),t.varyings.add("vuvRegion","vec4"),void t.vertex.code.add(i.H`void forwardTextureCoordinates() {
|
|
2
|
-
vuv0 = uv0;
|
|
3
|
-
vuvRegion = uvRegion;
|
|
4
|
-
}`);default:(0,n.Xb)(e.textureCoordinateType);case 0:return void t.vertex.code.add(i.H`void forwardTextureCoordinates() {}`);case 3:return}}},63201:(t,e,r)=>{r.d(e,{NL:()=>v});var n=r(49255),i=r(99208),s=r(40876),o=r(31821);function u(t){t.code.add(o.H`
|
|
5
|
-
const float GAMMA = ${o.H.float(s.Tf)};
|
|
6
|
-
const float INV_GAMMA = ${o.H.float(1/s.Tf)};
|
|
7
|
-
|
|
8
|
-
vec4 delinearizeGamma(vec4 color) {
|
|
9
|
-
return vec4(pow(color.rgb, vec3(INV_GAMMA)), color.a);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
vec3 linearizeGamma(vec3 color) {
|
|
13
|
-
return pow(color, vec3(GAMMA));
|
|
14
|
-
}
|
|
15
|
-
`)}var c=r(40710),a=r(33079),l=r(28421),d=r(20304),h=r(15976),m=r(63761);function v(t,e){if(!(0,n.RN)(e.output))return;t.fragment.include(u);const{emissionSource:r,hasEmissiveTextureTransform:s,bindType:v}=e,f=3===r||4===r||5===r;f&&(t.include(i.r,e),t.fragment.uniforms.add(1===v?new m.N("texEmission",t=>t.textureEmissive):new h.o("texEmission",t=>t.textureEmissive)));const x=2===r||f;x&&t.fragment.uniforms.add(1===v?new a.t("emissiveBaseColor",t=>t.emissiveBaseColor):new c.W("emissiveBaseColor",t=>t.emissiveBaseColor));const g=0!==r;g&&7!==r&&6!==r&&4!==r&&5!==r&&t.fragment.uniforms.add(1===v?new d.m("emissiveStrength",t=>t.emissiveStrength):new l.J("emissiveStrength",t=>t.emissiveStrength));const _=7===r,p=5===r,M=1===r||6===r||_;t.fragment.code.add(o.H`
|
|
16
|
-
vec4 getEmissions(vec3 symbolColor) {
|
|
17
|
-
vec4 emissions = ${x?p?"emissiveSource == 0 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(emissiveBaseColor, 1.0)":M?_?"emissiveSource == 0 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)":"vec4(linearizeGamma(symbolColor), 1.0)":"vec4(0.0)"};
|
|
18
|
-
${(0,o.If)(f,`${(0,o.If)(p,`if(emissiveSource == 0) {\n vec4 emissiveFromTex = textureLookup(texEmission, ${s?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);\n }`,`vec4 emissiveFromTex = textureLookup(texEmission, ${s?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`)}\n emissions.w = emissions.rgb == vec3(0.0) ? 0.0: emissions.w;`)}
|
|
19
|
-
${(0,o.If)(g,"emissions.rgb *= emissiveStrength;")}
|
|
20
|
-
return emissions;
|
|
21
|
-
}
|
|
22
|
-
`)}r(25634)},63761:(t,e,r)=>{r.d(e,{N:()=>i});var n=r(74333);class i extends n.n{constructor(t,e){super(t,"sampler2D",1,(r,n,i)=>r.bindTexture(t,e(n,i)))}}},65786:(t,e,r)=>{r.d(e,{Y:()=>n});const n=class{};new n},65806:(t,e,r)=>{r.d(e,{g:()=>o});var n=r(51850),i=r(98988),s=r(9762);function o(t,e,r,n){if((0,i.canProjectWithoutEngine)(t.spatialReference,r)){u[0]=t.x,u[1]=t.y;const i=t.z;return u[2]=i??n??0,(0,s.projectBuffer)(u,t.spatialReference,0,e,r,0)}const o=(0,i.tryProjectWithZConversion)(t,r);return!!o&&(e[0]=o?.x,e[1]=o?.y,e[2]=o?.z??n??0,!0)}const u=(0,n.vt)()},71351:(t,e,r)=>{r.d(e,{C:()=>d,Cr:()=>h,LV:()=>l,fA:()=>m,kb:()=>v,oC:()=>f,vt:()=>c}),r(4576);var n=r(4341),i=(r(77690),r(29242)),s=r(38954),o=r(51850),u=r(32114);function c(t){return t?a((0,o.o8)(t.origin),(0,o.o8)(t.direction)):a((0,o.vt)(),(0,o.vt)())}function a(t,e){return{origin:t,direction:e}}function l(t,e){const r=x.get();return r.origin=t,r.direction=e,r}function d(t,e=c()){return m(t.origin,t.direction,e)}function h(t,e,r=c()){return(0,s.c)(r.origin,t),(0,s.d)(r.direction,e,t),r}function m(t,e,r=c()){return(0,s.c)(r.origin,t),(0,s.c)(r.direction,e),r}function v(t,e){const r=(0,s.h)(u.rq.get(),(0,s.n)(u.rq.get(),t.direction),(0,s.d)(u.rq.get(),e,t.origin));return(0,s.e)(r,r)}function f(t,e,r){const n=(0,s.e)(t.direction,(0,s.d)(r,e,t.origin));return(0,s.f)(r,t.origin,(0,s.g)(r,t.direction,n)),r}const x=new n.I(()=>c());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},74333:(t,e,r)=>{r.d(e,{n:()=>n}),r(44208);class n{constructor(t,e,r,n,i=null){if(this.name=t,this.type=e,this.arraySize=i,this.bind={0:null,1:null,2:null},n)switch(r){case void 0:break;case 0:this.bind[0]=n;break;case 1:this.bind[1]=n;break;case 2:this.bind[2]=n}}equals(t){return this.type===t.type&&this.name===t.name&&this.arraySize===t.arraySize}}},97937:(t,e,r)=>{r.d(e,{B:()=>I,a:()=>y,b:()=>T,c:()=>f,d:()=>E,e:()=>g,f:()=>v,g:()=>b,j:()=>x,m:()=>M,n:()=>C,o:()=>w,s:()=>B,w:()=>G,x:()=>R}),r(44208),r(53966);var n=r(34727),i=r(58083),s=r(38954),o=r(51850),u=r(91829),c=r(34304),a=r(71351);function l(t,e){const r=(0,s.l)(t),i=(0,n.YN)(t[2]/r),o=Math.atan2(t[1]/r,t[0]/r);return(0,s.i)(e,r,i,o),e}var d=r(44280),h=r(32114);const m=f();function v(t,e,r,n){return new Array(t,e,r,n)}function f(){return v(0,0,0,0)}function x(t,e){return v(t[0],t[1],t[2],e)}function g(t,e,r){return _(t,e[0],e[1],e[2],r)}function _(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function T(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=e,t}function b(t){return t[3]}function C(t,e){return(0,s.i)(e,t[0],t[1],t[2])}function y(t){return(0,s.i)(N,t[0],t[1],t[2])}function w(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2]}function R(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2]}function q(t,e,r){if(null==e)return!1;if(!A(t,e,S))return!1;let{t0:n,t1:i}=S;if((n<0||i<n&&i>0)&&(n=i),n<0)return!1;if(r){const{origin:t,direction:i}=e;r[0]=t[0]+i[0]*n,r[1]=t[1]+i[1]*n,r[2]=t[2]+i[2]*n}return!0}const S={t0:0,t1:0};function A(t,e,r){const{origin:n,direction:i}=e,s=z;s[0]=n[0]-t[0],s[1]=n[1]-t[1],s[2]=n[2]-t[2];const o=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===o)return!1;const u=2*(i[0]*s[0]+i[1]*s[1]+i[2]*s[2]),c=u*u-4*o*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-t[3]*t[3]);if(c<0)return!1;const a=Math.sqrt(c);return r.t0=(-u-a)/(2*o),r.t1=(-u+a)/(2*o),!0}const z=(0,o.vt)();function G(t,e){return q(t,e,null)}function V(t,e,r){const n=h.rq.get(),o=h.Rc.get();(0,s.h)(n,e.origin,e.direction);const u=b(t);(0,s.h)(r,n,e.origin),(0,s.g)(r,r,1/(0,s.l)(r)*u);const c=P(t,e.origin),a=(0,d.g7)(e.origin,r);return(0,i.$0)(o,a+c,n),(0,s.t)(r,r,o),r}function E(t,e,r,n){const i=b(t),s=i*i,o=e+.5*Math.PI,u=r*r+s-2*Math.cos(o)*r*i,c=Math.sqrt(u),a=u-s;if(a<=0)return.5;const l=Math.sqrt(a),d=Math.acos(l/c)-Math.asin(i/(c/Math.sin(o)));return Math.min(1,(d+.5*n)/n)}function j(t,e,r){const n=(0,s.d)(h.rq.get(),e,y(t)),i=(0,s.g)(h.rq.get(),n,t[3]/(0,s.l)(n));return(0,s.f)(r,i,y(t))}function P(t,e){const r=(0,s.d)(h.rq.get(),e,y(t)),i=(0,s.l)(r),o=b(t),u=o+Math.abs(o-i);return(0,n.XM)(o/u)}const $=(0,o.vt)();function U(t,e,r,n){const i=(0,s.d)($,e,y(t));switch(r){case 0:{const t=l(i,$)[2];return(0,s.i)(n,-Math.sin(t),Math.cos(t),0)}case 1:{const t=l(i,$),e=t[1],r=t[2],o=Math.sin(e);return(0,s.i)(n,-o*Math.cos(r),-o*Math.sin(r),Math.cos(e))}case 2:return(0,s.n)(n,i);default:return}}function k(t,e){const r=(0,s.d)(H,e,y(t));return(0,s.l)(r)-t[3]}function I(t,e){const r=(0,s.s)(y(t),e),n=b(t);return r<=n*n}const N=(0,o.vt)(),F=(0,o.vt)(),L=f(),H=(0,o.vt)(),B=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:k,angleToSilhouette:P,axisAt:U,cameraFrustumCoverage:E,clear:function(t){t[0]=0,t[1]=0,t[2]=0,t[3]=0},clone:function(t){return v(t[0],t[1],t[2],t[3])},closestPoint:function(t,e,r){return q(t,e,r)?r:((0,a.oC)(e,y(t),r),j(t,r,r))},closestPointOnSilhouette:V,containsPoint:I,copy:M,copyCenter:R,create:f,distanceToSilhouette:function(t,e){const r=(0,s.d)(h.rq.get(),e,y(t)),n=(0,s.k)(r),i=t[3]*t[3];return Math.sqrt(Math.abs(n-i))},elevate:function(t,e,r){return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=t[3]+e,r},equals:p,exactEquals:function(t,e){return p(t,e)},fromCenterAndRadius:x,fromRadius:T,fromValues:v,fromVec4:function(t){return v(t[0],t[1],t[2],t[3])},getCenter:C,getCenterTemp:y,getExtent:function(t,e){return e},getRadius:b,intersectLine:function(t,e,r){const n=(0,a.Cr)(e,r);if(!A(t,n,S))return[];const{origin:i,direction:u}=n,{t0:l,t1:d}=S,h=e=>{const r=(0,o.vt)();return(0,s.b)(r,i,u,e),j(t,r,r)};return Math.abs(l-d)<(0,c.FD)()?[h(l)]:[h(l),h(d)]},intersectRay:q,intersectRayClosestSilhouette:function(t,e,r){if(q(t,e,r))return r;const n=V(t,e,h.rq.get());return(0,s.f)(r,e.origin,(0,s.g)(h.rq.get(),e.direction,(0,s.j)(e.origin,n)/(0,s.l)(e.direction))),r},intersectsRay:G,projectPoint:j,set:_,setAltitudeAt:function(t,e,r,n){const i=k(t,e),o=U(t,e,2,H),u=(0,s.g)(H,o,r-i);return(0,s.f)(n,e,u)},setCenter:w,setCenterFromValues:function(t,e,r,n){t[0]=e,t[1]=r,t[2]=n},setExtent:function(t,e,r){return t!==r&&M(t,r),r},setFromCenterAndRadius:g,setFromValues:function(t,e,r,n,i){t[0]=e,t[1]=r,t[2]=n,t[3]=i},setTransformedCenter:function(t,e,r){w(t,(0,s.t)(N,e,r))},tmpSphere:L,toVec4:function(t){return(0,u.fA)(t[0],t[1],t[2],t[3])},union:function(t,e,r=f()){const n=(0,s.j)(y(t),C(e,F)),i=t[3],o=e[3];return n+o<i?(M(t,r),r):n+i<o?(M(e,r),r):((0,s.m)(N,y(t),C(e,F),(n+o-i)/(2*n)),g(r,N,(n+i+o)/2),r)}},Symbol.toStringTag,{value:"Module"}))},99208:(t,e,r)=>{r.d(e,{r:()=>o});var n=r(53466),i=r(31821);function s(t){t.fragment.code.add(i.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
|
|
23
|
-
vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
|
|
24
|
-
vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
|
|
25
|
-
float maxdUV = 0.125;
|
|
26
|
-
vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
27
|
-
vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
28
|
-
return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
|
|
29
|
-
}`)}function o(t,e){const{textureCoordinateType:r}=e;if(0===r||3===r)return;t.include(n.U,e);const o=2===r;o&&t.include(s),t.fragment.code.add(i.H`
|
|
30
|
-
vec4 textureLookup(sampler2D tex, vec2 uv) {
|
|
31
|
-
return ${o?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
|
|
32
|
-
}
|
|
33
|
-
`)}}}]);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{ScreenSpacePass as o}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Gamma as e}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatsPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{If as s,glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{lodFactorsPresets as n}from"../views/3d/webgl-engine/effects/bloom/BloomPresets.glsl.js";import{ToneMapping as a}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{NoParameters as m}from"../views/webgl/NoParameters.js";import{ShaderBuilder as d}from"../views/webgl/ShaderBuilder.js";class c extends m{constructor(o=n.sunny.far,e=n.sunny.near){super(),this.lodFactors=o,this.lodFactorsFront=e}}const u=new c;class b extends c{constructor(){super(...arguments),this.bloomLod=-1}}function g(n){const m=new d,c=m.fragment;return m.include(o),c.include(e),m.outputs.add("fragColor","vec4",0),m.outputs.add("fragEmission","vec4",1),c.include(a),c.uniforms.add(new t("colorTexture",o=>o.color),new t("emissionTexture",o=>o.emission)),n.blurEnabled?(c.uniforms.add(new t("bloomTexture0",o=>o.bloomTexture0),new t("bloomTexture1",o=>o.bloomTexture1),new t("bloomTexture2",o=>o.bloomTexture2),new t("bloomTexture3",o=>o.bloomTexture3),new t("bloomTexture4",o=>o.bloomTexture4),new i("bloomLod",o=>o.bloomLod),new r("lodFactors",o=>o.lodFactors,6),new r("lodFactorsFront",o=>o.lodFactorsFront,6)).main.add(l`
|
|
6
|
-
vec4 color = texture(colorTexture, uv);
|
|
7
|
-
color = vec4(linearizeGamma(color.rgb), color.a);
|
|
8
|
-
|
|
9
|
-
vec4 lod0 = texture(emissionTexture, uv);
|
|
10
|
-
vec4 lod1 = texture(bloomTexture0, uv);
|
|
11
|
-
vec4 lod2 = texture(bloomTexture1, uv);
|
|
12
|
-
vec4 lod3 = texture(bloomTexture2, uv);
|
|
13
|
-
vec4 lod4 = texture(bloomTexture3, uv);
|
|
14
|
-
vec4 lod5 = texture(bloomTexture4, uv);
|
|
15
|
-
|
|
16
|
-
vec4 emission = lodFactors[0] * lod0;
|
|
17
|
-
emission += lodFactors[1] * lod1;
|
|
18
|
-
emission += lodFactors[2] * lod2;
|
|
19
|
-
emission += lodFactors[3] * lod3;
|
|
20
|
-
emission += lodFactors[4] * lod4;
|
|
21
|
-
emission += lodFactors[5] * lod5;
|
|
22
|
-
|
|
23
|
-
// only for bloom editor lod debugging
|
|
24
|
-
emission = bloomLod == 0 ? lodFactors[0] * lod0 : bloomLod == 1 ? lodFactors[1] * lod1 : bloomLod == 2 ? lodFactors[2] * lod2 : bloomLod == 3 ? lodFactors[3] * lod3 : bloomLod == 4 ? lodFactors[4] * lod4 : bloomLod == 5 ? lodFactors[5] * lod5 : emission;
|
|
25
|
-
|
|
26
|
-
fragEmission = emission;
|
|
27
|
-
// tonemapping is only applied to the emissive part since main color values are not in HDR.
|
|
28
|
-
${s(n.tonemappingEnabled,"emission = vec4(tonemapACES(emission.rgb), emission.a);")}
|
|
29
|
-
|
|
30
|
-
fragColor = emission + color;
|
|
31
|
-
fragColor = delinearizeGamma(fragColor);
|
|
32
|
-
`),m):(c.main.add(l`
|
|
33
|
-
vec4 color = texture(colorTexture, uv);
|
|
34
|
-
color = vec4(linearizeGamma(color.rgb), color.a);
|
|
35
|
-
|
|
36
|
-
// emission is already in linear color space here.
|
|
37
|
-
vec4 emission = texture(emissionTexture, uv);
|
|
38
|
-
|
|
39
|
-
${s(n.tonemappingEnabled,"emission = vec4(tonemapACES(emission.rgb), emission.a);")}
|
|
40
|
-
fragColor = delinearizeGamma(emission + color);
|
|
41
|
-
`),m)}const v=Object.freeze(Object.defineProperty({__proto__:null,BloomCompositionPassParameters:b,build:g,defaultCompositionParameters:u},Symbol.toStringTag,{value:"Module"}));export{b as B,v as a,g as b,u as d};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{ReloadableShaderModule as e}from"../../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as r}from"../../core/shaderTechnique/ShaderTechnique.js";import{a as o}from"../../../../../chunks/BloomBlur.glsl.js";import{Pos2Locations as l}from"../../lib/DefaultVertexBufferLayouts.js";import{makePipelineState as s,defaultColorWrite as t}from"../../../../webgl/renderState.js";class i extends r{constructor(r,s){super(r,s,new e(o,()=>import("./BloomBlur.glsl.js")),l)}initializePipeline(){return s({colorWrite:t})}}export{i as BloomBlurTechnique};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{ReloadableShaderModule as e}from"../../core/shaderTechnique/ReloadableShaderModule.js";import{ShaderTechnique as r}from"../../core/shaderTechnique/ShaderTechnique.js";import{a as o}from"../../../../../chunks/BloomComposition.glsl.js";import{Pos2Locations as s}from"../../lib/DefaultVertexBufferLayouts.js";import{ColorAttachment0 as i,ColorAttachment1 as t}from"../../../../webgl/enums.js";import{makePipelineState as m,defaultColorWrite as l}from"../../../../webgl/renderState.js";class a extends r{constructor(r,i){super(r,i,new e(o,()=>import("./BloomComposition.glsl.js")),s)}initializePipeline(){return m({colorWrite:l,drawBuffers:{buffers:[i,t]}})}}export{a as BloomCompositionTechnique};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import{lerp as t}from"../../../../../core/mathUtils.js";import{watch as o,syncAndInitial as r}from"../../../../../core/reactiveUtils.js";import{property as i}from"../../../../../core/accessorSupport/decorators/property.js";import"../../../../../core/has.js";import"../../../../../core/Logger.js";import"../../../../../core/RandomLCG.js";import{subclass as s}from"../../../../../core/accessorSupport/decorators/subclass.js";import{ZEROS as a}from"../../../../../core/libs/gl-matrix-2/factories/vec4f32.js";import{InternalRenderCategory as n}from"../../../webgl.js";import{TransparentEnvironment as m}from"../TransparentEnvironment.js";import{B as l}from"../../../../../chunks/BloomBlur.glsl.js";import{BloomBlurTechnique as c}from"./BloomBlurTechnique.js";import{BloomBlurTechniqueConfiguration as h}from"./BloomBlurTechniqueConfiguration.js";import{B as u}from"../../../../../chunks/BloomComposition.glsl.js";import{BloomCompositionTechnique as p}from"./BloomCompositionTechnique.js";import{BloomCompositionTechniqueConfiguration as d}from"./BloomCompositionTechniqueConfiguration.js";import{blurRadiusPresets as b,lodFactorsPresets as g,normalizePreset as _}from"./BloomPresets.glsl.js";import{ColorAttachment1 as f,DepthStencilAttachment as P}from"../../../../webgl/enums.js";let T=class extends m{constructor(e){super(e),this.consumes={required:[n.TRANSPARENT_ENVIRONMENT,"emissive"]},this.produces=n.TRANSPARENT_ENVIRONMENT,this._blurHorizontalConfiguration=new h,this._blurVerticalConfiguration=new h,this._compositionConfiguration=new d,this._compositionParameters=new u,this._blurParameters=new l,this._blurScale=3.06,this._glowEnabled=!1,this._bloomResults=new Array;e.view.stage.renderView.techniques.precompile(p,this._compositionConfiguration)}initialize(){this.addHandles([o(()=>this._updateFogParameters(),()=>{},r),o(()=>this.view.qualitySettings.glow,e=>{this._glowEnabled=e,this.precompile(),this.requestRender(1)},r)])}_updateFogParameters(){const e=this.view.environment.weather;if("sunny"===e.type||"cloudy"===e.type)this._blurParameters.blurRadius=b[e.type];else{const o="foggy"===e.type?e.fogStrength:e.precipitation;this._blurParameters.blurRadius=t(b.cloudy,b[e.type],o)}this._compositionParameters.lodFactors=g[e.type].far,this._compositionParameters.lodFactorsFront=g[e.type].near,this.requestRender(1)}precompile(){this._glowEnabled&&(this.techniques.precompile(c,this._blurHorizontalConfiguration),this._blurVerticalConfiguration.bloomStage=1,this.techniques.precompile(c,this._blurVerticalConfiguration)),this._compositionConfiguration.blurEnabled=this._glowEnabled,this.techniques.precompile(p,this._compositionConfiguration)}render(e){const t=e.find(({name:e})=>e===n.TRANSPARENT_ENVIRONMENT),o=t.getAttachment(f)?.attachment;if(!o)return t;const r=t.getAttachment(P);if(!this._glowEnabled){const e=this.techniques.get(p,this._compositionConfiguration);if(!e.compiled)return this.requestRender(1),t;const i=t.getTexture(),s=this.fboCache,{fullWidth:a,fullHeight:n}=this.bindParameters.camera,m=this.renderingContext,l=s.acquire(i.descriptor.width,i.descriptor.height,this.produces);return this._prepareFBO(l,a,n),this._compositionParameters.color=i,this._compositionParameters.emission=o,m.bindTechnique(e,this.bindParameters,this._compositionParameters),m.screen.draw(),l.attachDepth(r),l.attachColor(t.getAttachment(f),f),l}const i=this.techniques.get(c,this._blurHorizontalConfiguration),s=this.techniques.get(c,this._blurVerticalConfiguration),a=this.techniques.get(p,this._compositionConfiguration);if(!i.compiled||!s.compiled||!a.compiled)return this.requestRender(1),t;const m=t.getTexture(),l=this.fboCache,{fullWidth:h,fullHeight:u}=this.bindParameters.camera,d=this.renderingContext;let b=o,g=Math.ceil(h/2),_=Math.ceil(u/2);const T=5,R=this._blurParameters.blurRadius;for(let n=0;n<T;n++){const e=l.acquire(g,_,"bloomHorizontal",8);this._blurParameters.color=b,this._prepareFBO(e,g,_),d.bindTechnique(i,this.bindParameters,this._blurParameters),d.screen.draw();const t=l.acquire(g,_,"bloomVertical",8);this._blurParameters.color=e.getTexture(),this._prepareFBO(t,g,_),d.bindTechnique(s,this.bindParameters,this._blurParameters),d.screen.draw(),e.release(),this._bloomResults[n]=t,g=Math.ceil(g/2),_=Math.ceil(_/2),b=this._bloomResults[n].getTexture(),this._blurParameters.blurRadius*=this._blurScale}this._blurParameters.blurRadius=R,this._compositionParameters.color=m,this._compositionParameters.emission=o,this._compositionParameters.bloomTexture0=this._bloomResults[0].getTexture(),this._compositionParameters.bloomTexture1=this._bloomResults[1].getTexture(),this._compositionParameters.bloomTexture2=this._bloomResults[2].getTexture(),this._compositionParameters.bloomTexture3=this._bloomResults[3].getTexture(),this._compositionParameters.bloomTexture4=this._bloomResults[4].getTexture();const C=l.acquire(m.descriptor.width,m.descriptor.height,this.produces);return C.acquireColor(f,8,"emissive bloom"),this._prepareFBO(C,h,u,!0),d.bindTechnique(a,this.bindParameters,this._compositionParameters),d.screen.draw(),this._bloomResults.forEach(e=>e.release()),C.attachDepth(r),C}_prepareFBO(e,t,o,r=!1){const i=this.renderingContext;i.bindFramebuffer(e.fbo),i.setViewport(0,0,t,o),i.setClearColor(0,0,0,0),i.clear(16384),r&&i.clearBuffer(1,a)}get test(){return{compositionParameters:this._compositionParameters,blurParameters:this._blurParameters,setLodFactors:e=>{this._compositionParameters.lodFactors=_(e)},toggleTonemapping:e=>{this._compositionConfiguration.tonemappingEnabled=e,this.requestRender(1)}}}};e([i()],T.prototype,"consumes",void 0),e([i()],T.prototype,"produces",void 0),T=e([s("esri.views.3d.webgl-engine.effects.bloom.BloomRenderNode")],T);export{T as BloomRenderNode};
|
|
File without changes
|
/package/views/3d/webgl-engine/effects/{bloom/BloomPresets.glsl.js → glow/GlowPresets.glsl.js}
RENAMED
|
File without changes
|