x_ite 9.7.0 → 10.0.1
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/README.md +5 -5
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +16 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +61 -46
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +18 -18
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +42 -34
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -31
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +23 -23
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +37 -40
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +38 -42
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjection.js +15 -15
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -27
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +2394 -14
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/assets/lib/README.md +2 -0
- package/dist/assets/lib/draco_decoder_gltf.js +1 -1
- package/dist/assets/lib/libktx.js +1 -1
- package/dist/assets/lib/lut_charlie.png +0 -0
- package/dist/assets/lib/lut_sheen_E.png +0 -0
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.d.ts +13 -0
- package/dist/x_ite.js +16251 -15275
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +16251 -15279
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE
|
|
1
|
+
/* X_ITE v10.0.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
5
|
/***/ 823:
|
|
6
6
|
/***/ ((module) => {
|
|
7
7
|
|
|
8
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("lib/jquery");
|
|
9
9
|
|
|
10
10
|
/***/ })
|
|
11
11
|
|
|
@@ -67,19 +67,18 @@ module.exports = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("lib/jquery"
|
|
|
67
67
|
/******/
|
|
68
68
|
/************************************************************************/
|
|
69
69
|
var __webpack_exports__ = {};
|
|
70
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
71
|
-
(() => {
|
|
72
70
|
|
|
73
71
|
// UNUSED EXPORTS: default
|
|
74
72
|
|
|
75
73
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
76
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
74
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components");
|
|
77
75
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
78
76
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
79
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
77
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Namespace");
|
|
80
78
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
81
79
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/CubeMapTexturing/Panorama1.fs.js
|
|
82
|
-
const __default__ = /* glsl */ `
|
|
80
|
+
const __default__ = /* glsl */ `
|
|
81
|
+
precision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;varying vec2 texCoord;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){vec3 xyz;if(face==0)xyz=vec3(1.0,uv.y,uv.x);else if(face==1)xyz=vec3(-1.0,uv.y,-uv.x);else if(face==2)xyz=vec3(uv.x,uv.y,-1.0);else if(face==3)xyz=vec3(-uv.x,uv.y,1.0);else if(face==4)xyz=vec3(uv.y,-1.0,uv.x);else xyz=vec3(-uv.y,1.0,uv.x);return xyz;}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture2D(x3d_PanoramaTexture,src).rgb;}void main(){gl_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}`
|
|
83
82
|
;
|
|
84
83
|
|
|
85
84
|
Namespace_default().add ("Panorama1.fs", "x_ite/Browser/CubeMapTexturing/Panorama1.fs", __default__);
|
|
@@ -164,19 +163,19 @@ const X3DCubeMapTexturingContext_default_ = X3DCubeMapTexturingContext;
|
|
|
164
163
|
Namespace_default().add ("X3DCubeMapTexturingContext", "x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext", X3DCubeMapTexturingContext_default_);
|
|
165
164
|
/* harmony default export */ const CubeMapTexturing_X3DCubeMapTexturingContext = (X3DCubeMapTexturingContext_default_);
|
|
166
165
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
167
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
166
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Fields");
|
|
168
167
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
169
168
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
170
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
169
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
171
170
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
172
171
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
173
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
172
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
174
173
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
175
174
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureNode\")"
|
|
176
|
-
const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
175
|
+
const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
|
|
177
176
|
var X3DSingleTextureNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureNode_namespaceObject);
|
|
178
177
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
179
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
178
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DConstants");
|
|
180
179
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
181
180
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js
|
|
182
181
|
/*******************************************************************************
|
|
@@ -333,10 +332,10 @@ const X3DEnvironmentTextureNode_default_ = X3DEnvironmentTextureNode;
|
|
|
333
332
|
Namespace_default().add ("X3DEnvironmentTextureNode", "x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode", X3DEnvironmentTextureNode_default_);
|
|
334
333
|
/* harmony default export */ const CubeMapTexturing_X3DEnvironmentTextureNode = (X3DEnvironmentTextureNode_default_);
|
|
335
334
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
336
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
335
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DCast");
|
|
337
336
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
338
337
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/BitSet\")"
|
|
339
|
-
const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
338
|
+
const BitSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Utility/BitSet");
|
|
340
339
|
var BitSet_default = /*#__PURE__*/__webpack_require__.n(BitSet_namespaceObject);
|
|
341
340
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js
|
|
342
341
|
/*******************************************************************************
|
|
@@ -545,6 +544,7 @@ Object .assign (Object .setPrototypeOf (ComposedCubeMapTexture .prototype, CubeM
|
|
|
545
544
|
|
|
546
545
|
this .setTransparent (textureNodes .some (textureNode => textureNode .isTransparent ()));
|
|
547
546
|
this .setLinear (textureNodes .some (textureNode => textureNode .isLinear ()));
|
|
547
|
+
this .setMipMaps (textureNodes .every (textureNode => textureNode .getMipMaps ()));
|
|
548
548
|
this .updateTextureParameters ();
|
|
549
549
|
}
|
|
550
550
|
else
|
|
@@ -607,13 +607,13 @@ const ComposedCubeMapTexture_default_ = ComposedCubeMapTexture;
|
|
|
607
607
|
Namespace_default().add ("ComposedCubeMapTexture", "x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture", ComposedCubeMapTexture_default_);
|
|
608
608
|
/* harmony default export */ const CubeMapTexturing_ComposedCubeMapTexture = (ComposedCubeMapTexture_default_);
|
|
609
609
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
|
|
610
|
-
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
610
|
+
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DBaseNode");
|
|
611
611
|
var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
|
|
612
612
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/X3DRenderObject\")"
|
|
613
|
-
const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
613
|
+
const X3DRenderObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Rendering/X3DRenderObject");
|
|
614
614
|
var X3DRenderObject_default = /*#__PURE__*/__webpack_require__.n(X3DRenderObject_namespaceObject);
|
|
615
615
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
616
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
616
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Rendering/TraverseType");
|
|
617
617
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
618
618
|
;// CONCATENATED MODULE: ./src/x_ite/Rendering/DependentRenderer.js
|
|
619
619
|
/*******************************************************************************
|
|
@@ -667,12 +667,13 @@ var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_names
|
|
|
667
667
|
|
|
668
668
|
|
|
669
669
|
|
|
670
|
-
function DependentRenderer (executionContext)
|
|
670
|
+
function DependentRenderer (executionContext, renderObject, node)
|
|
671
671
|
{
|
|
672
672
|
X3DBaseNode_default().call (this, executionContext);
|
|
673
673
|
X3DRenderObject_default().call (this, executionContext);
|
|
674
674
|
|
|
675
|
-
this .
|
|
675
|
+
this .node = node;
|
|
676
|
+
this .renderObject = renderObject;
|
|
676
677
|
}
|
|
677
678
|
|
|
678
679
|
Object .assign (Object .setPrototypeOf (DependentRenderer .prototype, (X3DBaseNode_default()).prototype),
|
|
@@ -687,9 +688,9 @@ Object .assign (Object .setPrototypeOf (DependentRenderer .prototype, (X3DBaseNo
|
|
|
687
688
|
{
|
|
688
689
|
return false;
|
|
689
690
|
},
|
|
690
|
-
|
|
691
|
+
getNode ()
|
|
691
692
|
{
|
|
692
|
-
this .
|
|
693
|
+
return this .node;
|
|
693
694
|
},
|
|
694
695
|
getLayer ()
|
|
695
696
|
{
|
|
@@ -711,6 +712,10 @@ Object .assign (Object .setPrototypeOf (DependentRenderer .prototype, (X3DBaseNo
|
|
|
711
712
|
{
|
|
712
713
|
return this .renderObject .getViewpoint ();
|
|
713
714
|
},
|
|
715
|
+
getViewpointStack ()
|
|
716
|
+
{
|
|
717
|
+
return this .renderObject .getViewpointStack ();
|
|
718
|
+
},
|
|
714
719
|
getLightContainer ()
|
|
715
720
|
{
|
|
716
721
|
return this .renderObject .getLights () [this .lightIndex ++];
|
|
@@ -753,28 +758,28 @@ const DependentRenderer_default_ = DependentRenderer;
|
|
|
753
758
|
Namespace_default().add ("DependentRenderer", "x_ite/Rendering/DependentRenderer", DependentRenderer_default_);
|
|
754
759
|
/* harmony default export */ const Rendering_DependentRenderer = (DependentRenderer_default_);
|
|
755
760
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TextureBuffer\")"
|
|
756
|
-
const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
761
|
+
const TextureBuffer_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Rendering/TextureBuffer");
|
|
757
762
|
var TextureBuffer_default = /*#__PURE__*/__webpack_require__.n(TextureBuffer_namespaceObject);
|
|
758
763
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
|
|
759
|
-
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
764
|
+
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Geometry/Camera");
|
|
760
765
|
var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
|
|
761
766
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
|
|
762
|
-
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
767
|
+
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Geometry/ViewVolume");
|
|
763
768
|
var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
|
|
764
769
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
765
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
770
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Rotation4");
|
|
766
771
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
767
772
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
768
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
773
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Vector3");
|
|
769
774
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
770
775
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector4\")"
|
|
771
|
-
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
776
|
+
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Vector4");
|
|
772
777
|
var Vector4_default = /*#__PURE__*/__webpack_require__.n(Vector4_namespaceObject);
|
|
773
778
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
774
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
779
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Matrix4");
|
|
775
780
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
776
781
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
777
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
782
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Algorithm");
|
|
778
783
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
779
784
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js
|
|
780
785
|
/*******************************************************************************
|
|
@@ -846,10 +851,10 @@ function GeneratedCubeMapTexture (executionContext)
|
|
|
846
851
|
|
|
847
852
|
this .addType ((X3DConstants_default()).GeneratedCubeMapTexture);
|
|
848
853
|
|
|
849
|
-
this .
|
|
850
|
-
this .projectionMatrix
|
|
851
|
-
this .modelMatrix
|
|
852
|
-
this .viewVolume
|
|
854
|
+
this .dependentRenderers = new WeakMap ();
|
|
855
|
+
this .projectionMatrix = new (Matrix4_default()) ();
|
|
856
|
+
this .modelMatrix = new (Matrix4_default()) ();
|
|
857
|
+
this .viewVolume = new (ViewVolume_default()) ();
|
|
853
858
|
}
|
|
854
859
|
|
|
855
860
|
Object .assign (Object .setPrototypeOf (GeneratedCubeMapTexture .prototype, CubeMapTexturing_X3DEnvironmentTextureNode .prototype),
|
|
@@ -860,8 +865,6 @@ Object .assign (Object .setPrototypeOf (GeneratedCubeMapTexture .prototype, Cube
|
|
|
860
865
|
|
|
861
866
|
this ._size .addInterest ("set_size__", this);
|
|
862
867
|
|
|
863
|
-
this .dependentRenderer .setup ();
|
|
864
|
-
|
|
865
868
|
this .set_size__ ();
|
|
866
869
|
},
|
|
867
870
|
set_size__ ()
|
|
@@ -948,10 +951,17 @@ Object .assign (Object .setPrototypeOf (GeneratedCubeMapTexture .prototype, Cube
|
|
|
948
951
|
|
|
949
952
|
return function (renderObject)
|
|
950
953
|
{
|
|
951
|
-
this .
|
|
954
|
+
if (!this .dependentRenderers .has (renderObject))
|
|
955
|
+
{
|
|
956
|
+
const dependentRenderer = new Rendering_DependentRenderer (this .getExecutionContext (), renderObject, this);
|
|
957
|
+
|
|
958
|
+
dependentRenderer .setup ();
|
|
959
|
+
|
|
960
|
+
this .dependentRenderers .set (renderObject, dependentRenderer);
|
|
961
|
+
}
|
|
952
962
|
|
|
953
963
|
const
|
|
954
|
-
dependentRenderer = this .
|
|
964
|
+
dependentRenderer = this .dependentRenderers .get (renderObject),
|
|
955
965
|
browser = this .getBrowser (),
|
|
956
966
|
layer = renderObject .getLayer (),
|
|
957
967
|
gl = browser .getContext (),
|
|
@@ -1032,7 +1042,7 @@ Object .assign (Object .setPrototypeOf (GeneratedCubeMapTexture .prototype, Cube
|
|
|
1032
1042
|
{
|
|
1033
1043
|
CubeMapTexturing_X3DEnvironmentTextureNode .prototype .setShaderUniforms .call (this, gl, shaderObject, renderObject, channel);
|
|
1034
1044
|
|
|
1035
|
-
if (renderObject === this
|
|
1045
|
+
if (renderObject .getNode () === this)
|
|
1036
1046
|
gl .uniformMatrix4fv (shaderObject .x3d_ModelViewMatrix, false, zeros);
|
|
1037
1047
|
};
|
|
1038
1048
|
})(),
|
|
@@ -1079,13 +1089,13 @@ const GeneratedCubeMapTexture_default_ = GeneratedCubeMapTexture;
|
|
|
1079
1089
|
Namespace_default().add ("GeneratedCubeMapTexture", "x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture", GeneratedCubeMapTexture_default_);
|
|
1080
1090
|
/* harmony default export */ const CubeMapTexturing_GeneratedCubeMapTexture = (GeneratedCubeMapTexture_default_);
|
|
1081
1091
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
1082
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
1092
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
1083
1093
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
1084
1094
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
1085
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
1095
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("standard/Math/Numbers/Vector2");
|
|
1086
1096
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
1087
1097
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEVELOPMENT\")"
|
|
1088
|
-
const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
1098
|
+
const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/DEVELOPMENT");
|
|
1089
1099
|
var DEVELOPMENT_default = /*#__PURE__*/__webpack_require__.n(DEVELOPMENT_namespaceObject);
|
|
1090
1100
|
;// CONCATENATED MODULE: ./src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js
|
|
1091
1101
|
/* provided dependency */ var $ = __webpack_require__(823);
|
|
@@ -1208,6 +1218,7 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1208
1218
|
if (this .URL .pathname .match (/\.ktx2?(?:\.gz)?$/) || this .URL .href .match (/^data:image\/ktx2[;,]/))
|
|
1209
1219
|
{
|
|
1210
1220
|
this .setLinear (true);
|
|
1221
|
+
this .setMipMaps (false);
|
|
1211
1222
|
|
|
1212
1223
|
this .getBrowser () .getKTXDecoder ()
|
|
1213
1224
|
.then (decoder => decoder .loadKTXFromURL (this .URL, this .getCache ()))
|
|
@@ -1217,6 +1228,7 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1217
1228
|
else
|
|
1218
1229
|
{
|
|
1219
1230
|
this .setLinear (false);
|
|
1231
|
+
this .setMipMaps (true);
|
|
1220
1232
|
|
|
1221
1233
|
if (this .URL .protocol !== "data:")
|
|
1222
1234
|
{
|
|
@@ -1278,6 +1290,10 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1278
1290
|
|
|
1279
1291
|
gl .bindTexture (gl .TEXTURE_2D, texture);
|
|
1280
1292
|
gl .texImage2D (gl .TEXTURE_2D, 0, gl .RGBA, gl .RGBA, gl .UNSIGNED_BYTE, this .image [0]);
|
|
1293
|
+
gl .texParameteri (gl .TEXTURE_2D, gl .TEXTURE_MIN_FILTER, gl .LINEAR);
|
|
1294
|
+
gl .texParameteri (gl .TEXTURE_2D, gl .TEXTURE_MAG_FILTER, gl .LINEAR);
|
|
1295
|
+
gl .texParameteri (gl .TEXTURE_2D, gl .TEXTURE_WRAP_S, gl .CLAMP_TO_EDGE);
|
|
1296
|
+
gl .texParameteri (gl .TEXTURE_2D, gl .TEXTURE_WRAP_T, gl .CLAMP_TO_EDGE);
|
|
1281
1297
|
|
|
1282
1298
|
this .imageToCubeMap (texture, this .image .prop ("width"), this .image .prop ("height"), false);
|
|
1283
1299
|
|
|
@@ -1327,8 +1343,8 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1327
1343
|
const
|
|
1328
1344
|
gl = this .getBrowser () .getContext (),
|
|
1329
1345
|
framebuffer = gl .createFramebuffer (),
|
|
1330
|
-
width1_4 = width / 4,
|
|
1331
|
-
height1_3 = height / 3,
|
|
1346
|
+
width1_4 = Math .floor (width / 4),
|
|
1347
|
+
height1_3 = Math .floor (height / 3),
|
|
1332
1348
|
data = new Uint8Array (width1_4 * height1_3 * 4);
|
|
1333
1349
|
|
|
1334
1350
|
// Init cube map texture.
|
|
@@ -1380,7 +1396,7 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1380
1396
|
shaderNode = browser .getPanoramaShader (),
|
|
1381
1397
|
framebuffer = gl .createFramebuffer (),
|
|
1382
1398
|
textureUnit = browser .getTextureCubeUnit (),
|
|
1383
|
-
size = height / 2,
|
|
1399
|
+
size = Math .floor (height / 2),
|
|
1384
1400
|
data = new Uint8Array (size * size * 4);
|
|
1385
1401
|
|
|
1386
1402
|
// Adjust panorama texture.
|
|
@@ -1408,6 +1424,7 @@ Object .assign (Object .setPrototypeOf (ImageCubeMapTexture .prototype, CubeMapT
|
|
|
1408
1424
|
|
|
1409
1425
|
gl .bindFramebuffer (gl .FRAMEBUFFER, framebuffer);
|
|
1410
1426
|
gl .viewport (0, 0, size, size);
|
|
1427
|
+
gl .scissor (0, 0, size, size);
|
|
1411
1428
|
gl .disable (gl .DEPTH_TEST);
|
|
1412
1429
|
gl .enable (gl .CULL_FACE);
|
|
1413
1430
|
gl .frontFace (gl .CCW);
|
|
@@ -1566,7 +1583,5 @@ const CubeMapTexturing_default_ = undefined;
|
|
|
1566
1583
|
|
|
1567
1584
|
Namespace_default().add ("CubeMapTexturing", "assets/components/CubeMapTexturing", CubeMapTexturing_default_);
|
|
1568
1585
|
/* harmony default export */ const CubeMapTexturing = ((/* unused pure expression or super */ null && (CubeMapTexturing_default_)));
|
|
1569
|
-
})();
|
|
1570
|
-
|
|
1571
1586
|
/******/ })()
|
|
1572
1587
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v9.7.0 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-9.7.0")].require("lib/jquery")}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Components");var t=r.n(e);const i=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Namespace");var n=r.n(i);const a="precision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;varying vec2 texCoord;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){vec3 xyz;if(face==0)xyz=vec3(1.0,uv.y,uv.x);else if(face==1)xyz=vec3(-1.0,uv.y,-uv.x);else if(face==2)xyz=vec3(uv.x,uv.y,-1.0);else if(face==3)xyz=vec3(-uv.x,uv.y,1.0);else if(face==4)xyz=vec3(uv.y,-1.0,uv.x);else xyz=vec3(-uv.y,1.0,uv.x);return xyz;}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture2D(x3d_PanoramaTexture,src).rgb;}void main(){gl_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";n().add("Panorama1.fs","x_ite/Browser/CubeMapTexturing/Panorama1.fs",a);const s=a,o="#version 300 es\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;in vec2 texCoord;out vec4 x3d_FragColor;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){switch(face){case 0:return vec3(1.0,uv.y,uv.x);case 1:return vec3(-1.0,uv.y,-uv.x);case 2:return vec3(uv.x,uv.y,-1.0);case 3:return vec3(-uv.x,uv.y,1.0);case 4:return vec3(uv.y,-1.0,uv.x);default:return vec3(-uv.y,1.0,uv.x);}}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture(x3d_PanoramaTexture,src).rgb;}void main(){x3d_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";n().add("Panorama2.fs","x_ite/Browser/CubeMapTexturing/Panorama2.fs",o);const u=o,d=Symbol();function h(){}Object.assign(h.prototype,{getPanoramaShader(){return this[d]?this[d]:this[d]=this.createShader("Panorama","FullScreen","data:x-shader/x-fragment,"+["",s,u][this.getContext().getVersion()],[],["x3d_PanoramaTexture","x3d_CurrentFace"])}});const c=h;n().add("X3DCubeMapTexturingContext","x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext",c);const T=c,x=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Fields");var p=r.n(x);const l=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Base/X3DFieldDefinition");var g=r.n(l);const m=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Base/FieldDefinitionArray");var _=r.n(m);const f=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var b=r.n(f);const w=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Base/X3DConstants");var E=r.n(w);function v(e){b().call(this,e),this.addType(E().X3DEnvironmentTextureNode);const t=this.getBrowser().getContext();this.target=t.TEXTURE_CUBE_MAP,this.targets=[t.TEXTURE_CUBE_MAP_POSITIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_Y,t.TEXTURE_CUBE_MAP_NEGATIVE_Y],this.size=1}Object.assign(Object.setPrototypeOf(v.prototype,b().prototype),{getTarget(){return this.target},getTextureType:()=>4,getTargets(){return this.targets},getSize(){return this.size},setSize(e){this.size=e},clearTexture:(()=>{const e=new Uint8Array([255,255,255,255]);return function(){const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(const r of this.getTargets())t.texImage2D(r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e);this.setSize(1),this.setTransparent(!1),this.updateTextureParameters()}})(),updateTextureParameters(){b().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,this.size,this.size,!1,!1,!1)},setShaderUniforms(e,t,r,i=t.x3d_Texture[0]){const n=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,n)}}),Object.defineProperties(v,{typeName:{value:"X3DEnvironmentTextureNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0}});const y=v;n().add("X3DEnvironmentTextureNode","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",y);const C=y,S=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Base/X3DCast");var M=r.n(S);const R=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Utility/BitSet");var I=r.n(R);function D(e){C.call(this,e),this.addType(E().ComposedCubeMapTexture),this.addChildObjects(E().inputOutput,"update",new(p().SFTime)),e.getSpecificationVersion()<=3.3&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("top",this._topTexture),this.addAlias("bottom",this._bottomTexture)),this.textureNodes=[null,null,null,null,null,null],this.textureBits=new(I())}Object.assign(Object.setPrototypeOf(D.prototype,C.prototype),{initialize(){C.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.frameBuffer=e.createFramebuffer(),this.clearTexture(),this._frontTexture.addInterest("set_texture__",this,0),this._backTexture.addInterest("set_texture__",this,1),this._leftTexture.addInterest("set_texture__",this,2),this._rightTexture.addInterest("set_texture__",this,3),this._topTexture.addInterest("set_texture__",this,5),this._bottomTexture.addInterest("set_texture__",this,4),this._update.addInterest("update",this),this.set_texture__(0,this._frontTexture),this.set_texture__(1,this._backTexture),this.set_texture__(2,this._leftTexture),this.set_texture__(3,this._rightTexture),this.set_texture__(4,this._topTexture),this.set_texture__(5,this._bottomTexture)},set_texture__(e,t){let r=this.textureNodes[e];r?.removeInterest(`set_loadState${e}__`,this),r=this.textureNodes[e]=M()(E().X3DTexture2DNode,t),r?.addInterest(`set_loadState${e}__`,this,e,r),this.set_loadState__(e,r)},set_loadState__(e,t){this.setTextureBit(e,t?.checkLoadState()),this._update.addEvent()},setTextureBit(e,t){this.textureBits.set(e,t===E().COMPLETE_STATE)},isComplete(){if(63!=+this.textureBits)return!1;const e=this.textureNodes,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},update(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=t[0].getWidth();if(r!==this.getSize()){const t=new Uint8Array(r*r*4);e.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)e.texImage2D(this.getTargets()[i],0,e.RGBA,r,r,0,e.RGBA,e.UNSIGNED_BYTE,t);this.setSize(r),this.updateTextureParameters()}e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let i=0;i<6;++i){const n=t[i];if(e.bindTexture(e.TEXTURE_2D,n.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),1===n.getTextureType())e.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,r,r);else for(let t=0;t<r;++t)e.copyTexSubImage2D(this.getTargets()[i],0,0,r-t-1,0,t,r,1)}this.setTransparent(t.some((e=>e.isTransparent()))),this.setLinear(t.some((e=>e.isLinear()))),this.updateTextureParameters()}else this.clearTexture()}}),Object.defineProperties(D,{typeName:{value:"ComposedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(g())(E().inputOutput,"metadata",new(p().SFNode)),new(g())(E().inputOutput,"description",new(p().SFString)),new(g())(E().inputOutput,"frontTexture",new(p().SFNode)),new(g())(E().inputOutput,"backTexture",new(p().SFNode)),new(g())(E().inputOutput,"leftTexture",new(p().SFNode)),new(g())(E().inputOutput,"rightTexture",new(p().SFNode)),new(g())(E().inputOutput,"topTexture",new(p().SFNode)),new(g())(E().inputOutput,"bottomTexture",new(p().SFNode)),new(g())(E().initializeOnly,"textureProperties",new(p().SFNode))]),enumerable:!0}});for(let e=0;e<6;++e)D.prototype[`set_loadState${e}__`]=function(e,t){this.set_loadState__(e,t)};const X=D;n().add("ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",X);const O=X,U=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Base/X3DBaseNode");var B=r.n(U);const A=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Rendering/X3DRenderObject");var N=r.n(A);const F=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Rendering/TraverseType");var P=r.n(F);function z(e){B().call(this,e),N().call(this,e),this.renderObject=null}Object.assign(Object.setPrototypeOf(z.prototype,B().prototype),N().prototype,{initialize(){B().prototype.initialize.call(this),N().prototype.initialize.call(this)},isIndependent:()=>!1,setRenderer(e){this.renderObject=e},getLayer(){return this.renderObject.getLayer()},getBackground(){return this.renderObject.getBackground()},getFog(){return this.renderObject.getFog()},getNavigationInfo(){return this.renderObject.getNavigationInfo()},getViewpoint(){return this.renderObject.getViewpoint()},getLightContainer(){return this.renderObject.getLights()[this.lightIndex++]},render(e,t,r){switch(e){case P().COLLISION:case P().SHADOW:N().prototype.render.call(this,e,t,r);break;case P().DISPLAY:this.lightIndex=0,N().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Object.keys(z.prototype))Object.defineProperty(z.prototype,e,{enumerable:!1});const L=z;n().add("DependentRenderer","x_ite/Rendering/DependentRenderer",L);const V=L,j=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Rendering/TextureBuffer");var G=r.n(j);const q=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Geometry/Camera");var k=r.n(q);const Y=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Geometry/ViewVolume");var H=r.n(Y);const W=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Numbers/Rotation4");var $=r.n(W);const Z=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Numbers/Vector3");var K=r.n(Z);const J=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Numbers/Vector4");var Q=r.n(J);const ee=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Numbers/Matrix4");var te=r.n(ee);const re=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Algorithm");var ie=r.n(re);function ne(e){C.call(this,e),this.addType(E().GeneratedCubeMapTexture),this.dependentRenderer=new V(e),this.projectionMatrix=new(te()),this.modelMatrix=new(te()),this.viewVolume=new(H())}Object.assign(Object.setPrototypeOf(ne.prototype,C.prototype),{initialize(){C.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.dependentRenderer.setup(),this.set_size__()},set_size__(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():ie().nextPowerOfTwo(this._size.getValue());if(t>0){const r=new Uint8Array(t*t*4);e.bindTexture(this.getTarget(),this.getTexture());for(const i of this.getTargets())e.texImage2D(i,0,e.RGBA,t,t,0,e.RGBA,e.UNSIGNED_BYTE,r);this.updateTextureParameters(),this.viewport=new(Q())(0,0,t,t),this.frameBuffer=new(G())(this.getBrowser(),t,t),this.setSize(t)}else this.frameBuffer=null,this.setSize(0)},traverse(e,t){"NONE"!==this._update.getValue()&&t.isIndependent()&&this.frameBuffer&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:(()=>{const e=[new($())(K().zAxis,new(K())(0,0,-1)),new($())(K().zAxis,new(K())(0,0,1)),new($())(K().zAxis,new(K())(1,0,0)),new($())(K().zAxis,new(K())(-1,0,0)),new($())(K().zAxis,new(K())(0,-1,0)),new($())(K().zAxis,new(K())(0,1,0))],t=[new(K())(-1,-1,1),new(K())(-1,-1,1),new(K())(-1,-1,1),new(K())(-1,-1,1),new(K())(1,1,1),new(K())(1,1,1)],r=new(te());return function(i){this.dependentRenderer.setRenderer(i);const n=this.dependentRenderer,a=this.getBrowser(),s=i.getLayer(),o=a.getContext(),u=n.getBackground(),d=n.getNavigationInfo(),h=n.getViewpoint(),c=a.getHeadlight(),T=d._headlight.getValue(),x=d.getNearValue(),p=d.getFarValue(h),l=k().perspective(ie().radians(90),x,p,1,1,this.projectionMatrix),g=this.frameBuffer.getWidth(),m=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),n.getViewVolumes().push(this.viewVolume.set(l,this.viewport,this.viewport)),n.getProjectionMatrix().pushMatrix(l),o.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)o.clear(o.COLOR_BUFFER_BIT),n.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),n.getCameraSpaceMatrix().rotate(e[i]),n.getCameraSpaceMatrix().scale(t[i]),n.getViewMatrix().pushMatrix(r.assign(n.getCameraSpaceMatrix().get()).inverse()),n.getModelViewMatrix().pushMatrix(r),T&&(c.modelViewMatrix.pushMatrix(r),c.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(P().DISPLAY,n),T&&c.modelViewMatrix.pop(),n.getModelViewMatrix().pop(),n.getCameraSpaceMatrix().pop(),n.getViewMatrix().pop(),o.bindTexture(this.getTarget(),this.getTexture()),o.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,g,m);this.updateTextureParameters(),n.getProjectionMatrix().pop(),n.getViewVolumes().pop(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}})(),setShaderUniforms:(()=>{const e=new Float32Array(16);return function(t,r,i,n){C.prototype.setShaderUniforms.call(this,t,r,i,n),i===this.dependentRenderer&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}})()}),Object.defineProperties(ne,{typeName:{value:"GeneratedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:3}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(g())(E().inputOutput,"metadata",new(p().SFNode)),new(g())(E().inputOutput,"description",new(p().SFString)),new(g())(E().inputOutput,"update",new(p().SFString)("NONE")),new(g())(E().initializeOnly,"size",new(p().SFInt32)(128)),new(g())(E().initializeOnly,"textureProperties",new(p().SFNode))]),enumerable:!0}});const ae=ne;n().add("GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",ae);const se=ae,oe=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/Components/Networking/X3DUrlObject");var ue=r.n(oe);const de=window[Symbol.for("X_ITE.X3D-9.7.0")].require("standard/Math/Numbers/Vector2");var he=r.n(de);const ce=window[Symbol.for("X_ITE.X3D-9.7.0")].require("x_ite/DEVELOPMENT");var Te=r.n(ce),xe=r(823);const pe=new Uint8Array([255,255,255,255]);function le(e){C.call(this,e),ue().call(this,e),this.addType(E().ImageCubeMapTexture),this.image=xe("<img></img>"),this.urlStack=new(p().MFString)}Object.assign(Object.setPrototypeOf(le.prototype,C.prototype),ue().prototype,{initialize(){C.prototype.initialize.call(this),ue().prototype.initialize.call(this);const e=this.getBrowser().getContext();e.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)e.texImage2D(this.getTargets()[t],0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,pe);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad().catch(Function.prototype)},unloadData(){this.clearTexture()},loadData(){this.urlStack.setValue(this._url),this.loadNext()},loadNext(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(E().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getBaseURL()),this.URL.pathname.match(/\.ktx2?(?:\.gz)?$/)||this.URL.href.match(/^data:image\/ktx2[;,]/)?(this.setLinear(!0),this.getBrowser().getKTXDecoder().then((e=>e.loadKTXFromURL(this.URL,this.getCache()))).then((e=>this.setKTXTexture(e))).catch((e=>this.setError({type:e.message})))):(this.setLinear(!1),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href))},setError(e){"data:"!==this.URL.protocol&&console.warn(`Error loading image '${decodeURI(this.URL.href)}'`,e.type),this.loadNext()},setKTXTexture(e){if(e.target!==this.getTarget())return this.setError({type:"Invalid KTX texture target, must be 'TEXTURE_CUBE_MAP'."});Te()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{this.setTexture(e),this.setTransparent(!1),this.setSize(e.baseWidth),this.updateTextureParameters(),this.setLoadState(E().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},setImage(){Te()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{const e=this.getBrowser().getContext(),t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image[0]),this.imageToCubeMap(t,this.image.prop("width"),this.image.prop("height"),!1),this.setLoadState(E().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},imageToCubeMap(e,t,r){const i=t/r;Math.abs(i-4/3)<.01&&this.skyBoxToCubeMap(e,t,r),Math.abs(i-2)<.01&&this.panoramaToCubeMap(e,t,r),this.updateTextureParameters()},skyBoxToCubeMap:function(){const e=[new(he())(1,1),new(he())(3,1),new(he())(0,1),new(he())(2,1),new(he())(1,0),new(he())(1,2)];return function(t,r,i){const n=this.getBrowser().getContext(),a=n.createFramebuffer(),s=r/4,o=i/3,u=new Uint8Array(s*o*4);n.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)n.texImage2D(this.getTargets()[e],0,n.RGBA,s,o,0,n.RGBA,n.UNSIGNED_BYTE,null);n.bindFramebuffer(n.FRAMEBUFFER,a),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0);let d=!1;n.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)n.copyTexSubImage2D(this.getTargets()[t],0,0,0,e[t].x*s,e[t].y*o,s,o),d||(n.readPixels(e[t].x*s,e[t].y*o,s,o,n.RGBA,n.UNSIGNED_BYTE,u),d=this.isImageTransparent(u));n.deleteFramebuffer(a),n.deleteTexture(t),this.setTransparent(d),this.setSize(s)}}(),panoramaToCubeMap(e,t,r){const i=this.getBrowser(),n=i.getContext(),a=i.getPanoramaShader(),s=n.createFramebuffer(),o=i.getTextureCubeUnit(),u=r/2,d=new Uint8Array(u*u*4);n.bindTexture(n.TEXTURE_2D,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.MIRRORED_REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.MIRRORED_REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)n.texImage2D(this.getTargets()[e],0,n.RGBA,u,u,0,n.RGBA,n.UNSIGNED_BYTE,null);n.useProgram(a.getProgram()),n.activeTexture(n.TEXTURE0+o),n.bindTexture(n.TEXTURE_2D,e),n.uniform1i(a.x3d_PanoramaTexture,o),n.bindFramebuffer(n.FRAMEBUFFER,s),n.viewport(0,0,u,u),n.disable(n.DEPTH_TEST),n.enable(n.CULL_FACE),n.frontFace(n.CCW),n.clearColor(0,0,0,0),n.bindVertexArray(i.getFullscreenVertexArrayObject());let h=!1;for(let e=0;e<6;++e)n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,this.getTargets()[e],this.getTexture(),0),n.clear(n.COLOR_BUFFER_BIT),n.uniform1i(a.x3d_CurrentFace,e),n.drawArrays(n.TRIANGLES,0,6),h||(n.readPixels(0,0,u,u,n.RGBA,n.UNSIGNED_BYTE,d),h=this.isImageTransparent(d));n.enable(n.DEPTH_TEST),n.deleteFramebuffer(s),n.deleteTexture(e),i.resetTextureUnits(),this.setTransparent(h),this.setSize(u)},dispose(){ue().prototype.dispose.call(this),C.prototype.dispose.call(this)}}),Object.defineProperties(le,{typeName:{value:"ImageCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:2}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(g())(E().inputOutput,"metadata",new(p().SFNode)),new(g())(E().inputOutput,"description",new(p().SFString)),new(g())(E().inputOutput,"load",new(p().SFBool)(!0)),new(g())(E().inputOutput,"url",new(p().MFString)),new(g())(E().inputOutput,"autoRefresh",new(p().SFTime)),new(g())(E().inputOutput,"autoRefreshTimeLimit",new(p().SFTime)(3600)),new(g())(E().initializeOnly,"textureProperties",new(p().SFNode))]),enumerable:!0}});const ge=le;n().add("ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",ge);const me=ge;t().add({name:"CubeMapTexturing",concreteNodes:[O,se,me],abstractNodes:[C],browserContext:T});const _e=void 0;n().add("CubeMapTexturing","assets/components/CubeMapTexturing",_e)})()})();
|
|
1
|
+
/* X_ITE v10.0.1 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-10.0.1")].require("lib/jquery")}},t={};function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const i=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components");var a=r.n(i);const n=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Namespace");var s=r.n(n);const o="\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;varying vec2 texCoord;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){vec3 xyz;if(face==0)xyz=vec3(1.0,uv.y,uv.x);else if(face==1)xyz=vec3(-1.0,uv.y,-uv.x);else if(face==2)xyz=vec3(uv.x,uv.y,-1.0);else if(face==3)xyz=vec3(-uv.x,uv.y,1.0);else if(face==4)xyz=vec3(uv.y,-1.0,uv.x);else xyz=vec3(-uv.y,1.0,uv.x);return xyz;}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture2D(x3d_PanoramaTexture,src).rgb;}void main(){gl_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama1.fs","x_ite/Browser/CubeMapTexturing/Panorama1.fs",o);const u=o,d="#version 300 es\nprecision highp float;precision highp int;precision highp sampler2D;const float M_PI=3.1415926535897932384626433832795;in vec2 texCoord;out vec4 x3d_FragColor;uniform sampler2D x3d_PanoramaTexture;uniform int x3d_CurrentFace;vec3 uvToXYZ(const in int face,const in vec2 uv){switch(face){case 0:return vec3(1.0,uv.y,uv.x);case 1:return vec3(-1.0,uv.y,-uv.x);case 2:return vec3(uv.x,uv.y,-1.0);case 3:return vec3(-uv.x,uv.y,1.0);case 4:return vec3(uv.y,-1.0,uv.x);default:return vec3(-uv.y,1.0,uv.x);}}vec2 dirToUV(const in vec3 dir){return vec2(0.5+0.5*atan(dir.z,dir.x)/M_PI,1.0-acos(dir.y)/M_PI);}vec3 panoramaToCubeMap(const in int face,const in vec2 texCoord){vec3 scan=uvToXYZ(face,texCoord);vec3 direction=normalize(scan);vec2 src=dirToUV(direction);return texture(x3d_PanoramaTexture,src).rgb;}void main(){x3d_FragColor=vec4(panoramaToCubeMap(x3d_CurrentFace,texCoord),1.0);}";s().add("Panorama2.fs","x_ite/Browser/CubeMapTexturing/Panorama2.fs",d);const h=d,T=Symbol();function c(){}Object.assign(c.prototype,{getPanoramaShader(){return this[T]?this[T]:this[T]=this.createShader("Panorama","FullScreen","data:x-shader/x-fragment,"+["",u,h][this.getContext().getVersion()],[],["x3d_PanoramaTexture","x3d_CurrentFace"])}});const p=c;s().add("X3DCubeMapTexturingContext","x_ite/Browser/CubeMapTexturing/X3DCubeMapTexturingContext",p);const x=p,l=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Fields");var g=r.n(l);const _=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DFieldDefinition");var m=r.n(_);const f=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/FieldDefinitionArray");var E=r.n(f);const b=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Texturing/X3DSingleTextureNode");var w=r.n(b);const v=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DConstants");var y=r.n(v);function M(e){w().call(this,e),this.addType(y().X3DEnvironmentTextureNode);const t=this.getBrowser().getContext();this.target=t.TEXTURE_CUBE_MAP,this.targets=[t.TEXTURE_CUBE_MAP_POSITIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_Z,t.TEXTURE_CUBE_MAP_NEGATIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_X,t.TEXTURE_CUBE_MAP_POSITIVE_Y,t.TEXTURE_CUBE_MAP_NEGATIVE_Y],this.size=1}Object.assign(Object.setPrototypeOf(M.prototype,w().prototype),{getTarget(){return this.target},getTextureType:()=>4,getTargets(){return this.targets},getSize(){return this.size},setSize(e){this.size=e},clearTexture:(()=>{const e=new Uint8Array([255,255,255,255]);return function(){const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(const r of this.getTargets())t.texImage2D(r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e);this.setSize(1),this.setTransparent(!1),this.updateTextureParameters()}})(),updateTextureParameters(){w().prototype.updateTextureParameters.call(this,this.target,this._textureProperties.getValue(),this.texturePropertiesNode,this.size,this.size,!1,!1,!1)},setShaderUniforms(e,t,r,i=t.x3d_Texture[0]){const a=this.getBrowser().getTextureCubeUnit();e.activeTexture(e.TEXTURE0+a),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(i.textureCube,a)}}),Object.defineProperties(M,{typeName:{value:"X3DEnvironmentTextureNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0}});const C=M;s().add("X3DEnvironmentTextureNode","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",C);const R=C,S=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DCast");var I=r.n(S);const X=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Utility/BitSet");var D=r.n(X);function U(e){R.call(this,e),this.addType(y().ComposedCubeMapTexture),this.addChildObjects(y().inputOutput,"update",new(g().SFTime)),e.getSpecificationVersion()<=3.3&&(this.addAlias("front",this._frontTexture),this.addAlias("back",this._backTexture),this.addAlias("left",this._leftTexture),this.addAlias("right",this._rightTexture),this.addAlias("top",this._topTexture),this.addAlias("bottom",this._bottomTexture)),this.textureNodes=[null,null,null,null,null,null],this.textureBits=new(D())}Object.assign(Object.setPrototypeOf(U.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this);const e=this.getBrowser().getContext();this.frameBuffer=e.createFramebuffer(),this.clearTexture(),this._frontTexture.addInterest("set_texture__",this,0),this._backTexture.addInterest("set_texture__",this,1),this._leftTexture.addInterest("set_texture__",this,2),this._rightTexture.addInterest("set_texture__",this,3),this._topTexture.addInterest("set_texture__",this,5),this._bottomTexture.addInterest("set_texture__",this,4),this._update.addInterest("update",this),this.set_texture__(0,this._frontTexture),this.set_texture__(1,this._backTexture),this.set_texture__(2,this._leftTexture),this.set_texture__(3,this._rightTexture),this.set_texture__(4,this._topTexture),this.set_texture__(5,this._bottomTexture)},set_texture__(e,t){let r=this.textureNodes[e];r?.removeInterest(`set_loadState${e}__`,this),r=this.textureNodes[e]=I()(y().X3DTexture2DNode,t),r?.addInterest(`set_loadState${e}__`,this,e,r),this.set_loadState__(e,r)},set_loadState__(e,t){this.setTextureBit(e,t?.checkLoadState()),this._update.addEvent()},setTextureBit(e,t){this.textureBits.set(e,t===y().COMPLETE_STATE)},isComplete(){if(63!=+this.textureBits)return!1;const e=this.textureNodes,t=e[0].getWidth();for(const r of e){if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},update(){if(this.isComplete()){const e=this.getBrowser().getContext(),t=this.textureNodes,r=t[0].getWidth();if(r!==this.getSize()){const t=new Uint8Array(r*r*4);e.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)e.texImage2D(this.getTargets()[i],0,e.RGBA,r,r,0,e.RGBA,e.UNSIGNED_BYTE,t);this.setSize(r),this.updateTextureParameters()}e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer);for(let i=0;i<6;++i){const a=t[i];if(e.bindTexture(e.TEXTURE_2D,a.getTexture()),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,a.getTexture(),0),e.bindTexture(this.getTarget(),this.getTexture()),1===a.getTextureType())e.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,r,r);else for(let t=0;t<r;++t)e.copyTexSubImage2D(this.getTargets()[i],0,0,r-t-1,0,t,r,1)}this.setTransparent(t.some((e=>e.isTransparent()))),this.setLinear(t.some((e=>e.isLinear()))),this.setMipMaps(t.every((e=>e.getMipMaps()))),this.updateTextureParameters()}else this.clearTexture()}}),Object.defineProperties(U,{typeName:{value:"ComposedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:1}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.1",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"frontTexture",new(g().SFNode)),new(m())(y().inputOutput,"backTexture",new(g().SFNode)),new(m())(y().inputOutput,"leftTexture",new(g().SFNode)),new(m())(y().inputOutput,"rightTexture",new(g().SFNode)),new(m())(y().inputOutput,"topTexture",new(g().SFNode)),new(m())(y().inputOutput,"bottomTexture",new(g().SFNode)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});for(let e=0;e<6;++e)U.prototype[`set_loadState${e}__`]=function(e,t){this.set_loadState__(e,t)};const O=U;s().add("ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",O);const A=O,P=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Base/X3DBaseNode");var B=r.n(P);const N=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Rendering/X3DRenderObject");var F=r.n(N);const z=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Rendering/TraverseType");var L=r.n(z);function V(e,t,r){B().call(this,e),F().call(this,e),this.node=r,this.renderObject=t}Object.assign(Object.setPrototypeOf(V.prototype,B().prototype),F().prototype,{initialize(){B().prototype.initialize.call(this),F().prototype.initialize.call(this)},isIndependent:()=>!1,getNode(){return this.node},getLayer(){return this.renderObject.getLayer()},getBackground(){return this.renderObject.getBackground()},getFog(){return this.renderObject.getFog()},getNavigationInfo(){return this.renderObject.getNavigationInfo()},getViewpoint(){return this.renderObject.getViewpoint()},getViewpointStack(){return this.renderObject.getViewpointStack()},getLightContainer(){return this.renderObject.getLights()[this.lightIndex++]},render(e,t,r){switch(e){case L().COLLISION:case L().SHADOW:F().prototype.render.call(this,e,t,r);break;case L().DISPLAY:this.lightIndex=0,F().prototype.render.call(this,e,t,r);for(const e of this.renderObject.getLights())e.modelViewMatrix.pop()}}});for(const e of Object.keys(V.prototype))Object.defineProperty(V.prototype,e,{enumerable:!1});const j=V;s().add("DependentRenderer","x_ite/Rendering/DependentRenderer",j);const G=j,q=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Rendering/TextureBuffer");var k=r.n(q);const Y=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Geometry/Camera");var W=r.n(Y);const H=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Geometry/ViewVolume");var $=r.n(H);const Z=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Rotation4");var K=r.n(Z);const J=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector3");var Q=r.n(J);const ee=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector4");var te=r.n(ee);const re=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Matrix4");var ie=r.n(re);const ae=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Algorithm");var ne=r.n(ae);function se(e){R.call(this,e),this.addType(y().GeneratedCubeMapTexture),this.dependentRenderers=new WeakMap,this.projectionMatrix=new(ie()),this.modelMatrix=new(ie()),this.viewVolume=new($())}Object.assign(Object.setPrototypeOf(se.prototype,R.prototype),{initialize(){R.prototype.initialize.call(this),this._size.addInterest("set_size__",this),this.set_size__()},set_size__(){const e=this.getBrowser().getContext(),t=e.getVersion()>=2?this._size.getValue():ne().nextPowerOfTwo(this._size.getValue());if(t>0){const r=new Uint8Array(t*t*4);e.bindTexture(this.getTarget(),this.getTexture());for(const i of this.getTargets())e.texImage2D(i,0,e.RGBA,t,t,0,e.RGBA,e.UNSIGNED_BYTE,r);this.updateTextureParameters(),this.viewport=new(te())(0,0,t,t),this.frameBuffer=new(k())(this.getBrowser(),t,t),this.setSize(t)}else this.frameBuffer=null,this.setSize(0)},traverse(e,t){"NONE"!==this._update.getValue()&&t.isIndependent()&&this.frameBuffer&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:(()=>{const e=[new(K())(Q().zAxis,new(Q())(0,0,-1)),new(K())(Q().zAxis,new(Q())(0,0,1)),new(K())(Q().zAxis,new(Q())(1,0,0)),new(K())(Q().zAxis,new(Q())(-1,0,0)),new(K())(Q().zAxis,new(Q())(0,-1,0)),new(K())(Q().zAxis,new(Q())(0,1,0))],t=[new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(-1,-1,1),new(Q())(1,1,1),new(Q())(1,1,1)],r=new(ie());return function(i){if(!this.dependentRenderers.has(i)){const e=new G(this.getExecutionContext(),i,this);e.setup(),this.dependentRenderers.set(i,e)}const a=this.dependentRenderers.get(i),n=this.getBrowser(),s=i.getLayer(),o=n.getContext(),u=a.getBackground(),d=a.getNavigationInfo(),h=a.getViewpoint(),T=n.getHeadlight(),c=d._headlight.getValue(),p=d.getNearValue(),x=d.getFarValue(h),l=W().perspective(ne().radians(90),p,x,1,1,this.projectionMatrix),g=this.frameBuffer.getWidth(),_=this.frameBuffer.getHeight();this.setTransparent(u.isTransparent()),this.frameBuffer.bind(),a.getViewVolumes().push(this.viewVolume.set(l,this.viewport,this.viewport)),a.getProjectionMatrix().pushMatrix(l),o.bindTexture(this.getTarget(),this.getTexture());for(let i=0;i<6;++i)o.clear(o.COLOR_BUFFER_BIT),a.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),a.getCameraSpaceMatrix().rotate(e[i]),a.getCameraSpaceMatrix().scale(t[i]),a.getViewMatrix().pushMatrix(r.assign(a.getCameraSpaceMatrix().get()).inverse()),a.getModelViewMatrix().pushMatrix(r),c&&(T.modelViewMatrix.pushMatrix(r),T.modelViewMatrix.multLeft(h.getCameraSpaceMatrix())),s.traverse(L().DISPLAY,a),c&&T.modelViewMatrix.pop(),a.getModelViewMatrix().pop(),a.getCameraSpaceMatrix().pop(),a.getViewMatrix().pop(),o.bindTexture(this.getTarget(),this.getTexture()),o.copyTexSubImage2D(this.getTargets()[i],0,0,0,0,0,g,_);this.updateTextureParameters(),a.getProjectionMatrix().pop(),a.getViewVolumes().pop(),"NEXT_FRAME_ONLY"===this._update.getValue()&&(this._update="NONE")}})(),setShaderUniforms:(()=>{const e=new Float32Array(16);return function(t,r,i,a){R.prototype.setShaderUniforms.call(this,t,r,i,a),i.getNode()===this&&t.uniformMatrix4fv(r.x3d_ModelViewMatrix,!1,e)}})()}),Object.defineProperties(se,{typeName:{value:"GeneratedCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:3}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"update",new(g().SFString)("NONE")),new(m())(y().initializeOnly,"size",new(g().SFInt32)(128)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const oe=se;s().add("GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",oe);const ue=oe,de=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/Components/Networking/X3DUrlObject");var he=r.n(de);const Te=window[Symbol.for("X_ITE.X3D-10.0.1")].require("standard/Math/Numbers/Vector2");var ce=r.n(Te);const pe=window[Symbol.for("X_ITE.X3D-10.0.1")].require("x_ite/DEVELOPMENT");var xe=r.n(pe),le=r(823);const ge=new Uint8Array([255,255,255,255]);function _e(e){R.call(this,e),he().call(this,e),this.addType(y().ImageCubeMapTexture),this.image=le("<img></img>"),this.urlStack=new(g().MFString)}Object.assign(Object.setPrototypeOf(_e.prototype,R.prototype),he().prototype,{initialize(){R.prototype.initialize.call(this),he().prototype.initialize.call(this);const e=this.getBrowser().getContext();e.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)e.texImage2D(this.getTargets()[t],0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,ge);this.image.on("load",this.setImage.bind(this)),this.image.on("abort error",this.setError.bind(this)),this.image.prop("crossOrigin","Anonymous"),this.requestImmediateLoad().catch(Function.prototype)},unloadData(){this.clearTexture()},loadData(){this.urlStack.setValue(this._url),this.loadNext()},loadNext(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(y().FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getBaseURL()),this.URL.pathname.match(/\.ktx2?(?:\.gz)?$/)||this.URL.href.match(/^data:image\/ktx2[;,]/)?(this.setLinear(!0),this.setMipMaps(!1),this.getBrowser().getKTXDecoder().then((e=>e.loadKTXFromURL(this.URL,this.getCache()))).then((e=>this.setKTXTexture(e))).catch((e=>this.setError({type:e.message})))):(this.setLinear(!1),this.setMipMaps(!0),"data:"!==this.URL.protocol&&(this.getCache()||this.URL.searchParams.set("_",Date.now())),this.image.attr("src",this.URL.href))},setError(e){"data:"!==this.URL.protocol&&console.warn(`Error loading image '${decodeURI(this.URL.href)}'`,e.type),this.loadNext()},setKTXTexture(e){if(e.target!==this.getTarget())return this.setError({type:"Invalid KTX texture target, must be 'TEXTURE_CUBE_MAP'."});xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{this.setTexture(e),this.setTransparent(!1),this.setSize(e.baseWidth),this.updateTextureParameters(),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},setImage(){xe()&&"data:"!==this.URL.protocol&&console.info(`Done loading image cube map texture '${decodeURI(this.URL.href)}'.`);try{const e=this.getBrowser().getContext(),t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image[0]),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),this.imageToCubeMap(t,this.image.prop("width"),this.image.prop("height"),!1),this.setLoadState(y().COMPLETE_STATE)}catch(e){this.setError({type:e.message})}},imageToCubeMap(e,t,r){const i=t/r;Math.abs(i-4/3)<.01&&this.skyBoxToCubeMap(e,t,r),Math.abs(i-2)<.01&&this.panoramaToCubeMap(e,t,r),this.updateTextureParameters()},skyBoxToCubeMap:function(){const e=[new(ce())(1,1),new(ce())(3,1),new(ce())(0,1),new(ce())(2,1),new(ce())(1,0),new(ce())(1,2)];return function(t,r,i){const a=this.getBrowser().getContext(),n=a.createFramebuffer(),s=Math.floor(r/4),o=Math.floor(i/3),u=new Uint8Array(s*o*4);a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,s,o,0,a.RGBA,a.UNSIGNED_BYTE,null);a.bindFramebuffer(a.FRAMEBUFFER,n),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,t,0);let d=!1;a.bindTexture(this.getTarget(),this.getTexture());for(let t=0;t<6;++t)a.copyTexSubImage2D(this.getTargets()[t],0,0,0,e[t].x*s,e[t].y*o,s,o),d||(a.readPixels(e[t].x*s,e[t].y*o,s,o,a.RGBA,a.UNSIGNED_BYTE,u),d=this.isImageTransparent(u));a.deleteFramebuffer(n),a.deleteTexture(t),this.setTransparent(d),this.setSize(s)}}(),panoramaToCubeMap(e,t,r){const i=this.getBrowser(),a=i.getContext(),n=i.getPanoramaShader(),s=a.createFramebuffer(),o=i.getTextureCubeUnit(),u=Math.floor(r/2),d=new Uint8Array(u*u*4);a.bindTexture(a.TEXTURE_2D,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.MIRRORED_REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)a.texImage2D(this.getTargets()[e],0,a.RGBA,u,u,0,a.RGBA,a.UNSIGNED_BYTE,null);a.useProgram(n.getProgram()),a.activeTexture(a.TEXTURE0+o),a.bindTexture(a.TEXTURE_2D,e),a.uniform1i(n.x3d_PanoramaTexture,o),a.bindFramebuffer(a.FRAMEBUFFER,s),a.viewport(0,0,u,u),a.scissor(0,0,u,u),a.disable(a.DEPTH_TEST),a.enable(a.CULL_FACE),a.frontFace(a.CCW),a.clearColor(0,0,0,0),a.bindVertexArray(i.getFullscreenVertexArrayObject());let h=!1;for(let e=0;e<6;++e)a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,this.getTargets()[e],this.getTexture(),0),a.clear(a.COLOR_BUFFER_BIT),a.uniform1i(n.x3d_CurrentFace,e),a.drawArrays(a.TRIANGLES,0,6),h||(a.readPixels(0,0,u,u,a.RGBA,a.UNSIGNED_BYTE,d),h=this.isImageTransparent(d));a.enable(a.DEPTH_TEST),a.deleteFramebuffer(s),a.deleteTexture(e),i.resetTextureUnits(),this.setTransparent(h),this.setSize(u)},dispose(){he().prototype.dispose.call(this),R.prototype.dispose.call(this)}}),Object.defineProperties(_e,{typeName:{value:"ImageCubeMapTexture",enumerable:!0},componentInfo:{value:Object.freeze({name:"CubeMapTexturing",level:2}),enumerable:!0},containerField:{value:"texture",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(E())([new(m())(y().inputOutput,"metadata",new(g().SFNode)),new(m())(y().inputOutput,"description",new(g().SFString)),new(m())(y().inputOutput,"load",new(g().SFBool)(!0)),new(m())(y().inputOutput,"url",new(g().MFString)),new(m())(y().inputOutput,"autoRefresh",new(g().SFTime)),new(m())(y().inputOutput,"autoRefreshTimeLimit",new(g().SFTime)(3600)),new(m())(y().initializeOnly,"textureProperties",new(g().SFNode))]),enumerable:!0}});const me=_e;s().add("ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",me);const fe=me;a().add({name:"CubeMapTexturing",concreteNodes:[A,ue,fe],abstractNodes:[R],browserContext:x});const Ee=void 0;s().add("CubeMapTexturing","assets/components/CubeMapTexturing",Ee)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE
|
|
1
|
+
/* X_ITE v10.0.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
54
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
54
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
55
55
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
60
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
60
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/DIS/DISEntityManager.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -171,10 +171,10 @@ const __default__ = DISEntityManager;
|
|
|
171
171
|
Namespace_default().add ("DISEntityManager", "x_ite/Components/DIS/DISEntityManager", __default__);
|
|
172
172
|
/* harmony default export */ const DIS_DISEntityManager = (__default__);
|
|
173
173
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DInfoNode\")"
|
|
174
|
-
const X3DInfoNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
174
|
+
const X3DInfoNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Core/X3DInfoNode");
|
|
175
175
|
var X3DInfoNode_default = /*#__PURE__*/__webpack_require__.n(X3DInfoNode_namespaceObject);
|
|
176
176
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
177
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
177
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
178
178
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
179
179
|
;// CONCATENATED MODULE: ./src/x_ite/Components/DIS/DISEntityTypeMapping.js
|
|
180
180
|
/*******************************************************************************
|
|
@@ -303,10 +303,10 @@ const DISEntityTypeMapping_default_ = DISEntityTypeMapping;
|
|
|
303
303
|
Namespace_default().add ("DISEntityTypeMapping", "x_ite/Components/DIS/DISEntityTypeMapping", DISEntityTypeMapping_default_);
|
|
304
304
|
/* harmony default export */ const DIS_DISEntityTypeMapping = (DISEntityTypeMapping_default_);
|
|
305
305
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
306
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
306
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
307
307
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
308
308
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
309
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
309
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
310
310
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
311
311
|
;// CONCATENATED MODULE: ./src/x_ite/Components/DIS/EspduTransform.js
|
|
312
312
|
/*******************************************************************************
|
|
@@ -519,7 +519,7 @@ const EspduTransform_default_ = EspduTransform;
|
|
|
519
519
|
Namespace_default().add ("EspduTransform", "x_ite/Components/DIS/EspduTransform", EspduTransform_default_);
|
|
520
520
|
/* harmony default export */ const DIS_EspduTransform = (EspduTransform_default_);
|
|
521
521
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
522
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
522
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.0.1")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
523
523
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
524
524
|
;// CONCATENATED MODULE: ./src/x_ite/Components/DIS/ReceiverPdu.js
|
|
525
525
|
/*******************************************************************************
|