x_ite 9.0.1 → 9.0.2
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/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +14 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +41 -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 +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- 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 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- 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 -38
- 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 -30
- 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 +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +162 -208
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +162 -208
- package/dist/x_ite.zip +0 -0
- package/package.json +1 -1
package/dist/x_ite.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* X_ITE v9.0.
|
|
1
|
+
/* X_ITE v9.0.2 */var __webpack_modules__ = ({
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 699:
|
|
4
4
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
5
5
|
|
|
6
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
6
|
+
/* provided dependency */ var jQuery = __webpack_require__(718);
|
|
7
7
|
/**
|
|
8
8
|
* @preserve jquery.fullscreen 1.1.5
|
|
9
9
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -199,7 +199,7 @@ installFullScreenHandlers();
|
|
|
199
199
|
|
|
200
200
|
/***/ }),
|
|
201
201
|
|
|
202
|
-
/***/
|
|
202
|
+
/***/ 801:
|
|
203
203
|
/***/ ((module, exports, __webpack_require__) => {
|
|
204
204
|
|
|
205
205
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -213,7 +213,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
213
213
|
(function (factory) {
|
|
214
214
|
if ( true ) {
|
|
215
215
|
// AMD. Register as an anonymous module.
|
|
216
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
216
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(718)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
217
217
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
218
218
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
219
219
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -424,7 +424,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
424
424
|
|
|
425
425
|
/***/ }),
|
|
426
426
|
|
|
427
|
-
/***/
|
|
427
|
+
/***/ 718:
|
|
428
428
|
/***/ (function(module, exports) {
|
|
429
429
|
|
|
430
430
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11148,7 +11148,7 @@ return jQuery;
|
|
|
11148
11148
|
|
|
11149
11149
|
/***/ }),
|
|
11150
11150
|
|
|
11151
|
-
/***/
|
|
11151
|
+
/***/ 89:
|
|
11152
11152
|
/***/ ((module) => {
|
|
11153
11153
|
|
|
11154
11154
|
/**
|
|
@@ -15927,7 +15927,7 @@ if (true) {
|
|
|
15927
15927
|
|
|
15928
15928
|
/***/ }),
|
|
15929
15929
|
|
|
15930
|
-
/***/
|
|
15930
|
+
/***/ 994:
|
|
15931
15931
|
/***/ (function(__unused_webpack_module, exports) {
|
|
15932
15932
|
|
|
15933
15933
|
|
|
@@ -19172,7 +19172,7 @@ if (true) {
|
|
|
19172
19172
|
|
|
19173
19173
|
/***/ }),
|
|
19174
19174
|
|
|
19175
|
-
/***/
|
|
19175
|
+
/***/ 630:
|
|
19176
19176
|
/***/ (function(module, exports) {
|
|
19177
19177
|
|
|
19178
19178
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
@@ -20299,7 +20299,7 @@ Object .defineProperty (Namespace, "add",
|
|
|
20299
20299
|
}
|
|
20300
20300
|
else
|
|
20301
20301
|
{
|
|
20302
|
-
const X3D = window [Symbol .for ("X_ITE.X3D-9.0.
|
|
20302
|
+
const X3D = window [Symbol .for ("X_ITE.X3D-9.0.2")];
|
|
20303
20303
|
|
|
20304
20304
|
if (X3D)
|
|
20305
20305
|
X3D [name] = module;
|
|
@@ -34121,7 +34121,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
|
|
|
34121
34121
|
x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
|
|
34122
34122
|
/* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
|
|
34123
34123
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
34124
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
34124
|
+
/* provided dependency */ var $ = __webpack_require__(718);
|
|
34125
34125
|
/*******************************************************************************
|
|
34126
34126
|
*
|
|
34127
34127
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34258,7 +34258,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
|
|
|
34258
34258
|
*
|
|
34259
34259
|
******************************************************************************/
|
|
34260
34260
|
|
|
34261
|
-
const VERSION_default_ = "9.0.
|
|
34261
|
+
const VERSION_default_ = "9.0.2";
|
|
34262
34262
|
;
|
|
34263
34263
|
|
|
34264
34264
|
x_ite_Namespace .add ("VERSION", "x_ite/Browser/VERSION", VERSION_default_);
|
|
@@ -38060,7 +38060,7 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
|
|
|
38060
38060
|
x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
|
|
38061
38061
|
/* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
|
|
38062
38062
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
38063
|
-
/* provided dependency */ var X3DParser_$ = __webpack_require__(
|
|
38063
|
+
/* provided dependency */ var X3DParser_$ = __webpack_require__(718);
|
|
38064
38064
|
/*******************************************************************************
|
|
38065
38065
|
*
|
|
38066
38066
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -38885,7 +38885,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
|
|
|
38885
38885
|
x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
|
|
38886
38886
|
/* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
|
|
38887
38887
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
38888
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
38888
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(718);
|
|
38889
38889
|
/*******************************************************************************
|
|
38890
38890
|
*
|
|
38891
38891
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41430,7 +41430,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
41430
41430
|
x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
|
|
41431
41431
|
/* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
|
|
41432
41432
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
41433
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
41433
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(718);
|
|
41434
41434
|
/*******************************************************************************
|
|
41435
41435
|
*
|
|
41436
41436
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -43522,7 +43522,7 @@ const URLs_default_ = URLs;
|
|
|
43522
43522
|
x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
|
|
43523
43523
|
/* harmony default export */ const Networking_URLs = (URLs_default_);
|
|
43524
43524
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
43525
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
43525
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(718);
|
|
43526
43526
|
/*******************************************************************************
|
|
43527
43527
|
*
|
|
43528
43528
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -46823,7 +46823,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
46823
46823
|
x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
|
|
46824
46824
|
/* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
|
|
46825
46825
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
46826
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
46826
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(718);
|
|
46827
46827
|
/*******************************************************************************
|
|
46828
46828
|
*
|
|
46829
46829
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -46975,7 +46975,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
46975
46975
|
x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
|
|
46976
46976
|
/* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
|
|
46977
46977
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
46978
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
46978
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(718);
|
|
46979
46979
|
/*******************************************************************************
|
|
46980
46980
|
*
|
|
46981
46981
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50330,8 +50330,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
50330
50330
|
x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
|
|
50331
50331
|
/* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
|
|
50332
50332
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
50333
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
50334
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
50333
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(718);
|
|
50334
|
+
/* provided dependency */ var libtess = __webpack_require__(89);
|
|
50335
50335
|
/*******************************************************************************
|
|
50336
50336
|
*
|
|
50337
50337
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53099,7 +53099,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
53099
53099
|
x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
|
|
53100
53100
|
/* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
|
|
53101
53101
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
53102
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
53102
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(718);
|
|
53103
53103
|
/*******************************************************************************
|
|
53104
53104
|
*
|
|
53105
53105
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53436,7 +53436,7 @@ const Plane3_default_ = Plane3;
|
|
|
53436
53436
|
x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
|
|
53437
53437
|
/* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
|
|
53438
53438
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
53439
|
-
/* provided dependency */ var Triangle3_libtess = __webpack_require__(
|
|
53439
|
+
/* provided dependency */ var Triangle3_libtess = __webpack_require__(89);
|
|
53440
53440
|
/*******************************************************************************
|
|
53441
53441
|
*
|
|
53442
53442
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -60643,10 +60643,8 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, Texturi
|
|
|
60643
60643
|
if (this .texturePropertiesNode)
|
|
60644
60644
|
this .texturePropertiesNode .removeInterest ("updateTextureParameters", this);
|
|
60645
60645
|
|
|
60646
|
-
this .texturePropertiesNode = Base_X3DCast (Base_X3DConstants .TextureProperties, this ._textureProperties)
|
|
60647
|
-
|
|
60648
|
-
if (!this .texturePropertiesNode)
|
|
60649
|
-
this .texturePropertiesNode = this .getBrowser () .getDefaultTextureProperties ();
|
|
60646
|
+
this .texturePropertiesNode = Base_X3DCast (Base_X3DConstants .TextureProperties, this ._textureProperties)
|
|
60647
|
+
?? this .getBrowser () .getDefaultTextureProperties ();
|
|
60650
60648
|
|
|
60651
60649
|
this .texturePropertiesNode .addInterest ("updateTextureParameters", this);
|
|
60652
60650
|
|
|
@@ -60681,8 +60679,9 @@ Object .assign (Object .setPrototypeOf (X3DSingleTextureNode .prototype, Texturi
|
|
|
60681
60679
|
{
|
|
60682
60680
|
if (this .generateMipMaps)
|
|
60683
60681
|
{
|
|
60682
|
+
// https://stackoverflow.com/a/25640078/1818915
|
|
60684
60683
|
this .levels = textureProperties ._generateMipMaps .getValue ()
|
|
60685
|
-
? 1 + Math .log2 (Math .max (width, height))
|
|
60684
|
+
? 1 + Math .floor (Math .log2 (Math .max (width, height)))
|
|
60686
60685
|
: 1;
|
|
60687
60686
|
|
|
60688
60687
|
if (textureProperties ._generateMipMaps .getValue ())
|
|
@@ -60946,7 +60945,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
60946
60945
|
x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
|
|
60947
60946
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
|
|
60948
60947
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
60949
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
60948
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(718);
|
|
60950
60949
|
/*******************************************************************************
|
|
60951
60950
|
*
|
|
60952
60951
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -63667,9 +63666,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
|
|
|
63667
63666
|
{
|
|
63668
63667
|
bbox = bbox .copy () .multRight (this .getModelMatrix () .copy () .inverse ());
|
|
63669
63668
|
|
|
63670
|
-
|
|
63671
|
-
|
|
63672
|
-
this .lookAt (layerNode, bbox .center, minDistance, transitionTime, factor, straighten);
|
|
63669
|
+
this .lookAt (layerNode, bbox .center, this .getLookAtDistance (bbox), transitionTime, factor, straighten);
|
|
63673
63670
|
},
|
|
63674
63671
|
lookAt (layerNode, point, distance, transitionTime = 1, factor = 1, straighten = false)
|
|
63675
63672
|
{
|
|
@@ -63706,7 +63703,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
|
|
|
63706
63703
|
|
|
63707
63704
|
this ._fieldOfViewScale = 1;
|
|
63708
63705
|
this ._centerOfRotationOffset = point .copy () .subtract (this .getCenterOfRotation ());
|
|
63709
|
-
this .nearDistance =
|
|
63706
|
+
this .nearDistance = distance * (0.125 / 10);
|
|
63710
63707
|
this .farDistance = this .nearDistance * this .getMaxFarValue () / 0.125;
|
|
63711
63708
|
|
|
63712
63709
|
this .setInterpolators (this, relative);
|
|
@@ -63764,7 +63761,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
|
|
|
63764
63761
|
})(),
|
|
63765
63762
|
viewAll (bbox)
|
|
63766
63763
|
{
|
|
63767
|
-
bbox .multRight (this .modelMatrix .copy () .inverse ());
|
|
63764
|
+
bbox .copy () .multRight (this .modelMatrix .copy () .inverse ());
|
|
63768
63765
|
|
|
63769
63766
|
const
|
|
63770
63767
|
direction = this .getUserPosition () .copy () .subtract (bbox .center) .normalize (),
|
|
@@ -63776,7 +63773,7 @@ Object .assign (Object .setPrototypeOf (X3DViewpointNode .prototype, Core_X3DBin
|
|
|
63776
63773
|
this ._orientationOffset = this .getOrientation () .copy () .inverse () .multRight (userOrientation);
|
|
63777
63774
|
this ._centerOfRotationOffset = bbox .center .copy () .subtract (this .getCenterOfRotation ());
|
|
63778
63775
|
this ._fieldOfViewScale = 1;
|
|
63779
|
-
this .nearDistance =
|
|
63776
|
+
this .nearDistance = distance * (0.125 / 10);
|
|
63780
63777
|
this .farDistance = this .nearDistance * this .getMaxFarValue () / 0.125;
|
|
63781
63778
|
},
|
|
63782
63779
|
traverse (type, renderObject)
|
|
@@ -65537,7 +65534,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
65537
65534
|
x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
|
|
65538
65535
|
/* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
|
|
65539
65536
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
65540
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
65537
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(718);
|
|
65541
65538
|
/*******************************************************************************
|
|
65542
65539
|
*
|
|
65543
65540
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -79663,7 +79660,7 @@ Object .assign (Object .setPrototypeOf (X3DLightNode .prototype, Core_X3DChildNo
|
|
|
79663
79660
|
},
|
|
79664
79661
|
getLightKey ()
|
|
79665
79662
|
{
|
|
79666
|
-
return 1;
|
|
79663
|
+
return 1; // [ClipPlane 0, X3DLightNode 1, EnvironmentLight 2, X3DTextureProjectorNode 3]
|
|
79667
79664
|
},
|
|
79668
79665
|
getEnabled ()
|
|
79669
79666
|
{
|
|
@@ -80208,14 +80205,16 @@ Object .assign (EnvironmentLightContainer .prototype,
|
|
|
80208
80205
|
gl .uniform3f (shaderObject .x3d_EnvironmentLightColor, color .r, color .g, color .b);
|
|
80209
80206
|
gl .uniform1f (shaderObject .x3d_EnvironmentLightIntensity, lightNode .getIntensity ());
|
|
80210
80207
|
gl .uniformMatrix3fv (shaderObject .x3d_EnvironmentLightRotation, false, lightNode .getRotation ());
|
|
80208
|
+
gl .uniform1i (shaderObject .x3d_EnvironmentLightDiffuseTextureLinear, diffuseTexture ?.isLinear ());
|
|
80209
|
+
gl .uniform1i (shaderObject .x3d_EnvironmentLightSpecularTextureLinear, specularTexture ?.isLinear ());
|
|
80211
80210
|
gl .uniform1i (shaderObject .x3d_EnvironmentLightSpecularTextureLevels, specularTexture ?.getLevels () ?? 1);
|
|
80212
80211
|
|
|
80213
80212
|
gl .activeTexture (gl .TEXTURE0 + diffuseTextureUnit);
|
|
80214
|
-
gl .bindTexture (gl .TEXTURE_CUBE_MAP, diffuseTexture ?.getTexture () ?? browser .
|
|
80213
|
+
gl .bindTexture (gl .TEXTURE_CUBE_MAP, diffuseTexture ?.getTexture () ?? browser .getDefaultTextureCube ());
|
|
80215
80214
|
gl .uniform1i (shaderObject .x3d_EnvironmentLightDiffuseTexture, diffuseTextureUnit);
|
|
80216
80215
|
|
|
80217
80216
|
gl .activeTexture (gl .TEXTURE0 + specularTextureUnit);
|
|
80218
|
-
gl .bindTexture (gl .TEXTURE_CUBE_MAP, specularTexture ?.getTexture () ?? browser .
|
|
80217
|
+
gl .bindTexture (gl .TEXTURE_CUBE_MAP, specularTexture ?.getTexture () ?? browser .getDefaultTextureCube ());
|
|
80219
80218
|
gl .uniform1i (shaderObject .x3d_EnvironmentLightSpecularTexture, specularTextureUnit);
|
|
80220
80219
|
|
|
80221
80220
|
gl .activeTexture (gl .TEXTURE0 + GGXLUTTextureUnit);
|
|
@@ -89132,7 +89131,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
|
|
|
89132
89131
|
x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
|
|
89133
89132
|
/* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
|
|
89134
89133
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
89135
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
89134
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(718);
|
|
89136
89135
|
/*******************************************************************************
|
|
89137
89136
|
*
|
|
89138
89137
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -89331,7 +89330,9 @@ Object .assign (X3DProgrammableShaderObject .prototype,
|
|
|
89331
89330
|
this .x3d_EnvironmentLightAmbientIntensity = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.ambientIntensity");
|
|
89332
89331
|
this .x3d_EnvironmentLightRotation = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.rotation");
|
|
89333
89332
|
this .x3d_EnvironmentLightDiffuseTexture = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.diffuseTexture");
|
|
89333
|
+
this .x3d_EnvironmentLightDiffuseTextureLinear = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.diffuseTextureLinear");
|
|
89334
89334
|
this .x3d_EnvironmentLightSpecularTexture = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.specularTexture");
|
|
89335
|
+
this .x3d_EnvironmentLightSpecularTextureLinear = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.specularTextureLinear");
|
|
89335
89336
|
this .x3d_EnvironmentLightSpecularTextureLevels = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.specularTextureLevels");
|
|
89336
89337
|
this .x3d_EnvironmentLightGGXLUTTexture = gl .getUniformLocation (program, "x3d_EnvironmentLightSource.GGXLUTTexture");
|
|
89337
89338
|
|
|
@@ -91528,7 +91529,7 @@ mediump vec3 shadowColor;mediump float shadowIntensity;mediump float shadowBias;
|
|
|
91528
91529
|
};
|
|
91529
91530
|
#endif
|
|
91530
91531
|
#if defined(X3D_USE_IBL)
|
|
91531
|
-
struct x3d_EnvironmentLightSourceParameters{mediump vec3 color;mediump float intensity;mediump float ambientIntensity;mediump mat3 rotation;mediump samplerCube diffuseTexture;mediump samplerCube specularTexture;mediump int specularTextureLevels;mediump sampler2D GGXLUTTexture;};
|
|
91532
|
+
struct x3d_EnvironmentLightSourceParameters{mediump vec3 color;mediump float intensity;mediump float ambientIntensity;mediump mat3 rotation;mediump samplerCube diffuseTexture;bool diffuseTextureLinear;mediump samplerCube specularTexture;bool specularTextureLinear;mediump int specularTextureLevels;mediump sampler2D GGXLUTTexture;};
|
|
91532
91533
|
#endif
|
|
91533
91534
|
#if defined(X3D_GEOMETRY_0D)&&defined(X3D_STYLE_PROPERTIES)
|
|
91534
91535
|
struct x3d_PointPropertiesParameters{mediump float pointSizeScaleFactor;mediump float pointSizeMinValue;mediump float pointSizeMaxValue;mediump vec3 attenuation;};
|
|
@@ -94093,14 +94094,17 @@ return finalColor;}void main(){fragment_main();}`
|
|
|
94093
94094
|
x_ite_Namespace .add ("Unlit2.fs", "assets/shaders/webgl2/Unlit2.fs", Unlit2_fs_default_);
|
|
94094
94095
|
/* harmony default export */ const Unlit2_fs = (Unlit2_fs_default_);
|
|
94095
94096
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl1/pbr/BDRF1.glsl.js
|
|
94096
|
-
const BDRF1_glsl_default_ = /* glsl */
|
|
94097
|
+
const BDRF1_glsl_default_ = /* glsl */ `#if defined(X3D_LIGHTING)
|
|
94098
|
+
const float M_PI=3.14159265359;vec3 F_Schlick(vec3 f0,vec3 f90,float VdotH){return f0+(f90-f0)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}float V_GGX(float NdotL,float NdotV,float alphaRoughness){float alphaRoughnessSq=alphaRoughness*alphaRoughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-alphaRoughnessSq)+alphaRoughnessSq);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-alphaRoughnessSq)+alphaRoughnessSq);float GGX=GGXV+GGXL;if(GGX>0.0){return 0.5/GGX;}return 0.0;}float D_GGX(float NdotH,float alphaRoughness){float alphaRoughnessSq=alphaRoughness*alphaRoughness;float f=(NdotH*NdotH)*(alphaRoughnessSq-1.0)+1.0;return alphaRoughnessSq/(M_PI*f*f);}vec3 BRDF_lambertian(vec3 f0,vec3 f90,vec3 diffuseColor,float specularWeight,float VdotH){return(1.0-specularWeight*F_Schlick(f0,f90,VdotH))*(diffuseColor/M_PI);}vec3 BRDF_specularGGX(vec3 f0,vec3 f90,float alphaRoughness,float specularWeight,float VdotH,float NdotL,float NdotV,float NdotH){vec3 F=F_Schlick(f0,f90,VdotH);float Vis=V_GGX(NdotL,NdotV,alphaRoughness);float D=D_GGX(NdotH,alphaRoughness);return specularWeight*F*Vis*D;}
|
|
94099
|
+
#endif
|
|
94100
|
+
`
|
|
94097
94101
|
;
|
|
94098
94102
|
|
|
94099
94103
|
x_ite_Namespace .add ("BDRF1.glsl", "assets/shaders/webgl1/pbr/BDRF1.glsl", BDRF1_glsl_default_);
|
|
94100
94104
|
/* harmony default export */ const BDRF1_glsl = (BDRF1_glsl_default_);
|
|
94101
94105
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl1/pbr/IBL1.glsl.js
|
|
94102
94106
|
const IBL1_glsl_default_ = /* glsl */ `#if defined(X3D_USE_IBL)
|
|
94103
|
-
uniform x3d_EnvironmentLightSourceParameters x3d_EnvironmentLightSource;vec3 getDiffuseLight(const in vec3 n){
|
|
94107
|
+
uniform x3d_EnvironmentLightSourceParameters x3d_EnvironmentLightSource;vec3 getDiffuseLight(const in vec3 n){vec3 textureColor=textureCube(x3d_EnvironmentLightSource.diffuseTexture,x3d_EnvironmentLightSource.rotation*n).rgb;if(!x3d_EnvironmentLightSource.diffuseTextureLinear)textureColor=sRGBToLinear(textureColor);return textureColor*x3d_EnvironmentLightSource.color*x3d_EnvironmentLightSource.intensity;}vec3 getSpecularLight(const in vec3 reflection,const in float lod){vec3 textureColor=textureCubeLodEXT(x3d_EnvironmentLightSource.specularTexture,x3d_EnvironmentLightSource.rotation*reflection,lod).rgb;if(!x3d_EnvironmentLightSource.specularTextureLinear)textureColor=sRGBToLinear(textureColor);return textureColor*x3d_EnvironmentLightSource.color*x3d_EnvironmentLightSource.intensity;}vec3 getIBLRadianceGGX(const in vec3 n,const in vec3 v,const in float roughness,const in vec3 F0,const in float specularWeight){float NdotV=clamp(dot(n,v),0.0,1.0);float lod=roughness*float(x3d_EnvironmentLightSource.specularTextureLevels-1);vec3 reflection=normalize(reflect(-v,n));vec2 brdfSamplePoint=clamp(vec2(NdotV,roughness),vec2(0.0),vec2(1.0));vec2 f_ab=texture2D(x3d_EnvironmentLightSource.GGXLUTTexture,brdfSamplePoint).rg;vec3 specularLight=getSpecularLight(reflection,lod);vec3 Fr=max(vec3(1.0-roughness),F0)-F0;vec3 k_S=F0+Fr*pow(1.0-NdotV,5.0);vec3 FssEss=k_S*f_ab.x+f_ab.y;return specularWeight*specularLight*FssEss;}vec3 getIBLRadianceLambertian(const in vec3 n,const in vec3 v,const in float roughness,const in vec3 diffuseColor,const in vec3 F0,const in float specularWeight){float NdotV=clamp(dot(n,v),0.0,1.0);vec2 brdfSamplePoint=clamp(vec2(NdotV,roughness),vec2(0.0),vec2(1.0));vec2 f_ab=texture2D(x3d_EnvironmentLightSource.GGXLUTTexture,brdfSamplePoint).rg;vec3 irradiance=getDiffuseLight(n);vec3 Fr=max(vec3(1.0-roughness),F0)-F0;vec3 k_S=F0+Fr*pow(1.0-NdotV,5.0);vec3 FssEss=specularWeight*k_S*f_ab.x+f_ab.y;float Ems=(1.0-(f_ab.x+f_ab.y));vec3 F_avg=specularWeight*(F0+(1.0-F0)/21.0);vec3 FmsEms=Ems*FssEss*F_avg/(1.0-F_avg*Ems);vec3 k_D=diffuseColor*(1.0-FssEss+FmsEms);return(FmsEms+k_D)*irradiance;}
|
|
94104
94108
|
#endif
|
|
94105
94109
|
`
|
|
94106
94110
|
;
|
|
@@ -94181,7 +94185,7 @@ return baseColor;}
|
|
|
94181
94185
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE)
|
|
94182
94186
|
uniform x3d_MetallicRoughnessTextureParameters x3d_MetallicRoughnessTexture;
|
|
94183
94187
|
#endif
|
|
94184
|
-
MaterialInfo getMetallicRoughnessInfo(MaterialInfo info){info.metallic=x3d_Material.metallic;info.perceptualRoughness=x3d_Material.roughness;
|
|
94188
|
+
MaterialInfo getMetallicRoughnessInfo(in MaterialInfo info){info.metallic=x3d_Material.metallic;info.perceptualRoughness=x3d_Material.roughness;
|
|
94185
94189
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE)
|
|
94186
94190
|
vec3 texCoord=getTexCoord(x3d_MetallicRoughnessTexture.textureTransformMapping,x3d_MetallicRoughnessTexture.textureCoordinateMapping);
|
|
94187
94191
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE_FLIP_Y)
|
|
@@ -94216,7 +94220,7 @@ emissiveColor*=textureColor;
|
|
|
94216
94220
|
emissiveColor*=sRGBToLinear(textureColor);
|
|
94217
94221
|
#endif
|
|
94218
94222
|
#endif
|
|
94219
|
-
return emissiveColor
|
|
94223
|
+
return emissiveColor;}
|
|
94220
94224
|
#if defined(X3D_OCCLUSION_TEXTURE)
|
|
94221
94225
|
uniform x3d_OcclusionTextureParameters x3d_OcclusionTexture;
|
|
94222
94226
|
#endif
|
|
@@ -94240,7 +94244,7 @@ return 1.0;
|
|
|
94240
94244
|
x_ite_Namespace .add ("MaterialInfo1.glsl", "assets/shaders/webgl1/pbr/MaterialInfo1.glsl", MaterialInfo1_glsl_default_);
|
|
94241
94245
|
/* harmony default export */ const MaterialInfo1_glsl = (MaterialInfo1_glsl_default_);
|
|
94242
94246
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl1/pbr/ToneMapping1.glsl.js
|
|
94243
|
-
const ToneMapping1_glsl_default_ = /* glsl */ `const float exposure=1.0;const float GAMMA=2.2;const float INV_GAMMA=1.0/GAMMA;vec3 linearTosRGB(const in vec3 color){return pow(color,vec3(INV_GAMMA));}vec4 linearTosRGB(const in vec4 color){return vec4(linearTosRGB(color.rgb),color.a);}vec3 sRGBToLinear(const in vec3 color){return
|
|
94247
|
+
const ToneMapping1_glsl_default_ = /* glsl */ `const float exposure=1.0;const float GAMMA=2.2;const float INV_GAMMA=1.0/GAMMA;vec3 linearTosRGB(const in vec3 color){return pow(color,vec3(INV_GAMMA));}vec4 linearTosRGB(const in vec4 color){return vec4(linearTosRGB(color.rgb),color.a);}vec3 sRGBToLinear(const in vec3 color){return pow(color,vec3(GAMMA));}vec4 sRGBToLinear(const in vec4 color){return vec4(sRGBToLinear(color.rgb),color.a);}
|
|
94244
94248
|
#if defined(X3D_TONEMAP_ACES_NARKOWICZ)
|
|
94245
94249
|
vec3 toneMapACES_Narkowicz(const in vec3 color){const float A=2.51;const float B=0.03;const float C=2.43;const float D=0.59;const float E=0.14;return clamp((color*(A*color+B))/(color*(C*color+D)+E),0.0,1.0);}
|
|
94246
94250
|
#endif
|
|
@@ -94263,14 +94267,17 @@ return linearTosRGB(color);}`
|
|
|
94263
94267
|
x_ite_Namespace .add ("ToneMapping1.glsl", "assets/shaders/webgl1/pbr/ToneMapping1.glsl", ToneMapping1_glsl_default_);
|
|
94264
94268
|
/* harmony default export */ const ToneMapping1_glsl = (ToneMapping1_glsl_default_);
|
|
94265
94269
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl2/pbr/BDRF2.glsl.js
|
|
94266
|
-
const BDRF2_glsl_default_ = /* glsl */
|
|
94270
|
+
const BDRF2_glsl_default_ = /* glsl */ `#if defined(X3D_LIGHTING)
|
|
94271
|
+
const float M_PI=3.1415926535897932384626433832795;vec3 F_Schlick(vec3 f0,vec3 f90,float VdotH){return f0+(f90-f0)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}float V_GGX(float NdotL,float NdotV,float alphaRoughness){float alphaRoughnessSq=alphaRoughness*alphaRoughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-alphaRoughnessSq)+alphaRoughnessSq);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-alphaRoughnessSq)+alphaRoughnessSq);float GGX=GGXV+GGXL;if(GGX>0.0){return 0.5/GGX;}return 0.0;}float D_GGX(float NdotH,float alphaRoughness){float alphaRoughnessSq=alphaRoughness*alphaRoughness;float f=(NdotH*NdotH)*(alphaRoughnessSq-1.0)+1.0;return alphaRoughnessSq/(M_PI*f*f);}vec3 BRDF_lambertian(vec3 f0,vec3 f90,vec3 diffuseColor,float specularWeight,float VdotH){return(1.0-specularWeight*F_Schlick(f0,f90,VdotH))*(diffuseColor/M_PI);}vec3 BRDF_specularGGX(vec3 f0,vec3 f90,float alphaRoughness,float specularWeight,float VdotH,float NdotL,float NdotV,float NdotH){vec3 F=F_Schlick(f0,f90,VdotH);float Vis=V_GGX(NdotL,NdotV,alphaRoughness);float D=D_GGX(NdotH,alphaRoughness);return specularWeight*F*Vis*D;}
|
|
94272
|
+
#endif
|
|
94273
|
+
`
|
|
94267
94274
|
;
|
|
94268
94275
|
|
|
94269
94276
|
x_ite_Namespace .add ("BDRF2.glsl", "assets/shaders/webgl2/pbr/BDRF2.glsl", BDRF2_glsl_default_);
|
|
94270
94277
|
/* harmony default export */ const BDRF2_glsl = (BDRF2_glsl_default_);
|
|
94271
94278
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl2/pbr/IBL2.glsl.js
|
|
94272
94279
|
const IBL2_glsl_default_ = /* glsl */ `#if defined(X3D_USE_IBL)
|
|
94273
|
-
uniform x3d_EnvironmentLightSourceParameters x3d_EnvironmentLightSource;vec3 getDiffuseLight(const in vec3 n){
|
|
94280
|
+
uniform x3d_EnvironmentLightSourceParameters x3d_EnvironmentLightSource;vec3 getDiffuseLight(const in vec3 n){vec3 textureColor=texture(x3d_EnvironmentLightSource.diffuseTexture,x3d_EnvironmentLightSource.rotation*n).rgb;if(!x3d_EnvironmentLightSource.diffuseTextureLinear)textureColor=sRGBToLinear(textureColor);return textureColor*x3d_EnvironmentLightSource.color*x3d_EnvironmentLightSource.intensity;}vec3 getSpecularLight(const in vec3 reflection,const in float lod){vec3 textureColor=textureLod(x3d_EnvironmentLightSource.specularTexture,x3d_EnvironmentLightSource.rotation*reflection,lod).rgb;if(!x3d_EnvironmentLightSource.specularTextureLinear)textureColor=sRGBToLinear(textureColor);return textureColor*x3d_EnvironmentLightSource.color*x3d_EnvironmentLightSource.intensity;}vec3 getIBLRadianceGGX(const in vec3 n,const in vec3 v,const in float roughness,const in vec3 F0,const in float specularWeight){float NdotV=clamp(dot(n,v),0.0,1.0);float lod=roughness*float(x3d_EnvironmentLightSource.specularTextureLevels-1);vec3 reflection=normalize(reflect(-v,n));vec2 brdfSamplePoint=clamp(vec2(NdotV,roughness),vec2(0.0),vec2(1.0));vec2 f_ab=texture(x3d_EnvironmentLightSource.GGXLUTTexture,brdfSamplePoint).rg;vec3 specularLight=getSpecularLight(reflection,lod);vec3 Fr=max(vec3(1.0-roughness),F0)-F0;vec3 k_S=F0+Fr*pow(1.0-NdotV,5.0);vec3 FssEss=k_S*f_ab.x+f_ab.y;return specularWeight*specularLight*FssEss;}vec3 getIBLRadianceLambertian(const in vec3 n,const in vec3 v,const in float roughness,const in vec3 diffuseColor,const in vec3 F0,const in float specularWeight){float NdotV=clamp(dot(n,v),0.0,1.0);vec2 brdfSamplePoint=clamp(vec2(NdotV,roughness),vec2(0.0),vec2(1.0));vec2 f_ab=texture(x3d_EnvironmentLightSource.GGXLUTTexture,brdfSamplePoint).rg;vec3 irradiance=getDiffuseLight(n);vec3 Fr=max(vec3(1.0-roughness),F0)-F0;vec3 k_S=F0+Fr*pow(1.0-NdotV,5.0);vec3 FssEss=specularWeight*k_S*f_ab.x+f_ab.y;float Ems=(1.0-(f_ab.x+f_ab.y));vec3 F_avg=specularWeight*(F0+(1.0-F0)/21.0);vec3 FmsEms=Ems*FssEss*F_avg/(1.0-F_avg*Ems);vec3 k_D=diffuseColor*(1.0-FssEss+FmsEms);return(FmsEms+k_D)*irradiance;}
|
|
94274
94281
|
#endif
|
|
94275
94282
|
`
|
|
94276
94283
|
;
|
|
@@ -94355,7 +94362,7 @@ return baseColor;}
|
|
|
94355
94362
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE)
|
|
94356
94363
|
uniform x3d_MetallicRoughnessTextureParameters x3d_MetallicRoughnessTexture;
|
|
94357
94364
|
#endif
|
|
94358
|
-
MaterialInfo getMetallicRoughnessInfo(MaterialInfo info){info.metallic=x3d_Material.metallic;info.perceptualRoughness=x3d_Material.roughness;
|
|
94365
|
+
MaterialInfo getMetallicRoughnessInfo(in MaterialInfo info){info.metallic=x3d_Material.metallic;info.perceptualRoughness=x3d_Material.roughness;
|
|
94359
94366
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE)
|
|
94360
94367
|
vec3 texCoord=getTexCoord(x3d_MetallicRoughnessTexture.textureTransformMapping,x3d_MetallicRoughnessTexture.textureCoordinateMapping);
|
|
94361
94368
|
#if defined(X3D_METALLIC_ROUGHNESS_TEXTURE_FLIP_Y)
|
|
@@ -94394,7 +94401,7 @@ emissiveColor*=textureColor;
|
|
|
94394
94401
|
emissiveColor*=sRGBToLinear(textureColor);
|
|
94395
94402
|
#endif
|
|
94396
94403
|
#endif
|
|
94397
|
-
return emissiveColor
|
|
94404
|
+
return emissiveColor;}
|
|
94398
94405
|
#if defined(X3D_OCCLUSION_TEXTURE)
|
|
94399
94406
|
uniform x3d_OcclusionTextureParameters x3d_OcclusionTexture;
|
|
94400
94407
|
#endif
|
|
@@ -94420,7 +94427,7 @@ return 1.0;
|
|
|
94420
94427
|
x_ite_Namespace .add ("MaterialInfo2.glsl", "assets/shaders/webgl2/pbr/MaterialInfo2.glsl", MaterialInfo2_glsl_default_);
|
|
94421
94428
|
/* harmony default export */ const MaterialInfo2_glsl = (MaterialInfo2_glsl_default_);
|
|
94422
94429
|
;// CONCATENATED MODULE: ./src/assets/shaders/webgl2/pbr/ToneMapping2.glsl.js
|
|
94423
|
-
const ToneMapping2_glsl_default_ = /* glsl */ `const float exposure=1.0;const float GAMMA=2.2;const float INV_GAMMA=1.0/GAMMA;vec3 linearTosRGB(const in vec3 color){return pow(color,vec3(INV_GAMMA));}vec4 linearTosRGB(const in vec4 color){return vec4(linearTosRGB(color.rgb),color.a);}vec3 sRGBToLinear(const in vec3 color){return
|
|
94430
|
+
const ToneMapping2_glsl_default_ = /* glsl */ `const float exposure=1.0;const float GAMMA=2.2;const float INV_GAMMA=1.0/GAMMA;vec3 linearTosRGB(const in vec3 color){return pow(color,vec3(INV_GAMMA));}vec4 linearTosRGB(const in vec4 color){return vec4(linearTosRGB(color.rgb),color.a);}vec3 sRGBToLinear(const in vec3 color){return pow(color,vec3(GAMMA));}vec4 sRGBToLinear(const in vec4 color){return vec4(sRGBToLinear(color.rgb),color.a);}
|
|
94424
94431
|
#if defined(X3D_TONEMAP_ACES_NARKOWICZ)
|
|
94425
94432
|
vec3 toneMapACES_Narkowicz(const in vec3 color){const float A=2.51;const float B=0.03;const float C=2.43;const float D=0.59;const float E=0.14;return clamp((color*(A*color+B))/(color*(C*color+D)+E),0.0,1.0);}
|
|
94426
94433
|
#endif
|
|
@@ -94765,7 +94772,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
94765
94772
|
x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
|
|
94766
94773
|
/* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
|
|
94767
94774
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
94768
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
94775
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(718);
|
|
94769
94776
|
/*******************************************************************************
|
|
94770
94777
|
*
|
|
94771
94778
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -95422,7 +95429,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
95422
95429
|
x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
|
|
95423
95430
|
/* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
|
|
95424
95431
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
95425
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
95432
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(718);
|
|
95426
95433
|
/*******************************************************************************
|
|
95427
95434
|
*
|
|
95428
95435
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -98829,7 +98836,7 @@ const Components_Shape_default_ = {
|
|
|
98829
98836
|
x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
|
|
98830
98837
|
/* harmony default export */ const Components_Shape = (Components_Shape_default_);
|
|
98831
98838
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
|
|
98832
|
-
/* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(
|
|
98839
|
+
/* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(718);
|
|
98833
98840
|
/*******************************************************************************
|
|
98834
98841
|
*
|
|
98835
98842
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -99469,7 +99476,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
|
|
|
99469
99476
|
x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
|
|
99470
99477
|
/* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
|
|
99471
99478
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
|
|
99472
|
-
/* provided dependency */ var AudioClip_$ = __webpack_require__(
|
|
99479
|
+
/* provided dependency */ var AudioClip_$ = __webpack_require__(718);
|
|
99473
99480
|
/*******************************************************************************
|
|
99474
99481
|
*
|
|
99475
99482
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -99771,7 +99778,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
|
|
|
99771
99778
|
x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
|
|
99772
99779
|
/* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
|
|
99773
99780
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
|
|
99774
|
-
/* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(
|
|
99781
|
+
/* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(718);
|
|
99775
99782
|
/*******************************************************************************
|
|
99776
99783
|
*
|
|
99777
99784
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -101421,7 +101428,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
|
|
|
101421
101428
|
x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
|
|
101422
101429
|
/* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
|
|
101423
101430
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
|
|
101424
|
-
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(
|
|
101431
|
+
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(718);
|
|
101425
101432
|
/*******************************************************************************
|
|
101426
101433
|
*
|
|
101427
101434
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -103090,8 +103097,8 @@ const GifMedia_default_ = GifMedia;
|
|
|
103090
103097
|
x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
|
|
103091
103098
|
/* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
|
|
103092
103099
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
103093
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
103094
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
103100
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(718);
|
|
103101
|
+
/* provided dependency */ var SuperGif = __webpack_require__(630);
|
|
103095
103102
|
/*******************************************************************************
|
|
103096
103103
|
*
|
|
103097
103104
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -104269,7 +104276,7 @@ const MultiTextureTransform_default_ = MultiTextureTransform;
|
|
|
104269
104276
|
x_ite_Namespace .add ("MultiTextureTransform", "x_ite/Components/Texturing/MultiTextureTransform", MultiTextureTransform_default_);
|
|
104270
104277
|
/* harmony default export */ const Texturing_MultiTextureTransform = (MultiTextureTransform_default_);
|
|
104271
104278
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/PixelTexture.js
|
|
104272
|
-
/* provided dependency */ var PixelTexture_$ = __webpack_require__(
|
|
104279
|
+
/* provided dependency */ var PixelTexture_$ = __webpack_require__(718);
|
|
104273
104280
|
/*******************************************************************************
|
|
104274
104281
|
*
|
|
104275
104282
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -105695,63 +105702,6 @@ x_ite_Namespace .add ("Time", "x_ite/Components/Time", Time_default_);
|
|
|
105695
105702
|
|
|
105696
105703
|
|
|
105697
105704
|
|
|
105698
|
-
const extensions = [
|
|
105699
|
-
"ANGLE_instanced_arrays",
|
|
105700
|
-
"EXT_blend_minmax",
|
|
105701
|
-
"EXT_frag_depth",
|
|
105702
|
-
"EXT_shader_texture_lod",
|
|
105703
|
-
"EXT_texture_filter_anisotropic",
|
|
105704
|
-
"OES_element_index_uint",
|
|
105705
|
-
"OES_standard_derivatives",
|
|
105706
|
-
"OES_texture_float",
|
|
105707
|
-
"OES_texture_float_linear",
|
|
105708
|
-
"OES_texture_half_float",
|
|
105709
|
-
"OES_texture_half_float_linear",
|
|
105710
|
-
"OES_vertex_array_object",
|
|
105711
|
-
"WEBGL_compressed_texture_s3tc",
|
|
105712
|
-
//"WEBGL_debug_renderer_info",
|
|
105713
|
-
"WEBGL_debug_shaders",
|
|
105714
|
-
"WEBGL_depth_texture",
|
|
105715
|
-
"WEBGL_draw_buffers",
|
|
105716
|
-
"WEBGL_lose_context",
|
|
105717
|
-
|
|
105718
|
-
"EXT_color_buffer_float",
|
|
105719
|
-
"EXT_color_buffer_half_float",
|
|
105720
|
-
"EXT_disjoint_timer_query",
|
|
105721
|
-
"EXT_disjoint_timer_query_webgl2",
|
|
105722
|
-
"EXT_sRGB",
|
|
105723
|
-
"WEBGL_color_buffer_float",
|
|
105724
|
-
"WEBGL_compressed_texture_astc",
|
|
105725
|
-
"WEBGL_compressed_texture_atc",
|
|
105726
|
-
"WEBGL_compressed_texture_etc",
|
|
105727
|
-
"WEBGL_compressed_texture_etc1",
|
|
105728
|
-
"WEBGL_compressed_texture_pvrtc",
|
|
105729
|
-
"WEBGL_compressed_texture_s3tc",
|
|
105730
|
-
"WEBGL_compressed_texture_s3tc_srgb",
|
|
105731
|
-
|
|
105732
|
-
"EXT_float_blend",
|
|
105733
|
-
"OES_fbo_render_mipmap",
|
|
105734
|
-
"WEBGL_get_buffer_sub_data_async",
|
|
105735
|
-
"WEBGL_multiview",
|
|
105736
|
-
"WEBGL_security_sensitive_resources",
|
|
105737
|
-
"WEBGL_shared_resources",
|
|
105738
|
-
|
|
105739
|
-
"EXT_clip_cull_distance",
|
|
105740
|
-
"WEBGL_debug",
|
|
105741
|
-
"WEBGL_dynamic_texture",
|
|
105742
|
-
"WEBGL_subarray_uploads",
|
|
105743
|
-
"WEBGL_texture_multisample",
|
|
105744
|
-
"WEBGL_texture_source_iframe",
|
|
105745
|
-
"WEBGL_video_texture",
|
|
105746
|
-
|
|
105747
|
-
"EXT_texture_storage",
|
|
105748
|
-
"OES_depth24",
|
|
105749
|
-
"WEBGL_debug_shader_precision",
|
|
105750
|
-
"WEBGL_draw_elements_no_range_check",
|
|
105751
|
-
"WEBGL_subscribe_uniform",
|
|
105752
|
-
"WEBGL_texture_from_depth_video",
|
|
105753
|
-
];
|
|
105754
|
-
|
|
105755
105705
|
const Context =
|
|
105756
105706
|
{
|
|
105757
105707
|
create (canvas, version, preserveDrawingBuffer, mobile)
|
|
@@ -105793,7 +105743,7 @@ const Context =
|
|
|
105793
105743
|
|
|
105794
105744
|
// Load extensions.
|
|
105795
105745
|
|
|
105796
|
-
for (const extension of
|
|
105746
|
+
for (const extension of gl .getSupportedExtensions ())
|
|
105797
105747
|
gl .getExtension (extension);
|
|
105798
105748
|
|
|
105799
105749
|
// Feature detection:
|
|
@@ -105823,9 +105773,11 @@ const Context =
|
|
|
105823
105773
|
{
|
|
105824
105774
|
const
|
|
105825
105775
|
color_buffer_float = gl .getExtension ("WEBGL_color_buffer_float"),
|
|
105826
|
-
draw_buffers = gl .getExtension ("WEBGL_draw_buffers")
|
|
105776
|
+
draw_buffers = gl .getExtension ("WEBGL_draw_buffers"),
|
|
105777
|
+
sRGB = gl .getExtension ("EXT_sRGB");
|
|
105827
105778
|
|
|
105828
105779
|
gl .RGBA32F = color_buffer_float .RGBA32F_EXT;
|
|
105780
|
+
gl .SRGB8_ALPHA8 = sRGB .SRGB_ALPHA_EXT;
|
|
105829
105781
|
gl .MAX_COLOR_ATTACHMENTS = draw_buffers .MAX_COLOR_ATTACHMENTS_WEBGL;
|
|
105830
105782
|
gl .drawBuffers = draw_buffers .drawBuffersWEBGL .bind (draw_buffers);
|
|
105831
105783
|
|
|
@@ -106425,7 +106377,7 @@ const gettext_default_ = gettext;
|
|
|
106425
106377
|
x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
|
|
106426
106378
|
/* harmony default export */ const locale_gettext = (gettext_default_);
|
|
106427
106379
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
106428
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
106380
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(718);
|
|
106429
106381
|
/*******************************************************************************
|
|
106430
106382
|
*
|
|
106431
106383
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -106855,7 +106807,7 @@ const TextureQuality_default_ = TextureQuality;
|
|
|
106855
106807
|
x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
|
|
106856
106808
|
/* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
|
|
106857
106809
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
106858
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
106810
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(718);
|
|
106859
106811
|
/*******************************************************************************
|
|
106860
106812
|
*
|
|
106861
106813
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107445,7 +107397,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
107445
107397
|
x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
|
|
107446
107398
|
/* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
|
|
107447
107399
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
107448
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
107400
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(718);
|
|
107449
107401
|
/*******************************************************************************
|
|
107450
107402
|
*
|
|
107451
107403
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107568,8 +107520,8 @@ const Notification_default_ = Notification;
|
|
|
107568
107520
|
x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
|
|
107569
107521
|
/* harmony default export */ const Core_Notification = (Notification_default_);
|
|
107570
107522
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
107571
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
107572
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
107523
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(699);
|
|
107524
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(718);
|
|
107573
107525
|
/*******************************************************************************
|
|
107574
107526
|
*
|
|
107575
107527
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -110321,7 +110273,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
110321
110273
|
x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
|
|
110322
110274
|
/* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
|
|
110323
110275
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
110324
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
110276
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(718);
|
|
110325
110277
|
/*******************************************************************************
|
|
110326
110278
|
*
|
|
110327
110279
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -112129,7 +112081,9 @@ Object .assign (X3DLightingContext .prototype,
|
|
|
112129
112081
|
getGGXLUTTexture ()
|
|
112130
112082
|
{
|
|
112131
112083
|
this [_GGXLUTTexture] = new Texturing_ImageTexture (this .getPrivateScene ());
|
|
112132
|
-
this [_GGXLUTTexture] ._url
|
|
112084
|
+
this [_GGXLUTTexture] ._url = [Networking_URLs .getLibraryURL ("lut_ggx.png")];
|
|
112085
|
+
this [_GGXLUTTexture] ._repeatS = false;
|
|
112086
|
+
this [_GGXLUTTexture] ._repeatT = false;
|
|
112133
112087
|
this [_GGXLUTTexture] .setup ();
|
|
112134
112088
|
|
|
112135
112089
|
this .getGGXLUTTexture = function () { return this [_GGXLUTTexture]; };
|
|
@@ -112384,8 +112338,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
112384
112338
|
x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
|
|
112385
112339
|
/* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
|
|
112386
112340
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
112387
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
112388
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
112341
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(801);
|
|
112342
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(718);
|
|
112389
112343
|
/*******************************************************************************
|
|
112390
112344
|
*
|
|
112391
112345
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113257,8 +113211,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
113257
113211
|
x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
|
|
113258
113212
|
/* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
|
|
113259
113213
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
113260
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
113261
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
113214
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(801);
|
|
113215
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(718);
|
|
113262
113216
|
/*******************************************************************************
|
|
113263
113217
|
*
|
|
113264
113218
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114267,8 +114221,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
114267
114221
|
x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
|
|
114268
114222
|
/* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
|
|
114269
114223
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
114270
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
114271
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
114224
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(801);
|
|
114225
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(718);
|
|
114272
114226
|
/*******************************************************************************
|
|
114273
114227
|
*
|
|
114274
114228
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114599,8 +114553,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
114599
114553
|
x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
|
|
114600
114554
|
/* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
|
|
114601
114555
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
114602
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
114603
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
114556
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(801);
|
|
114557
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(718);
|
|
114604
114558
|
/*******************************************************************************
|
|
114605
114559
|
*
|
|
114606
114560
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115739,8 +115693,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
115739
115693
|
x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
|
|
115740
115694
|
/* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
|
|
115741
115695
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
115742
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
115743
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
115696
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(801);
|
|
115697
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(718);
|
|
115744
115698
|
/*******************************************************************************
|
|
115745
115699
|
*
|
|
115746
115700
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116659,7 +116613,7 @@ function MultiSampleFrameBuffer (browser, width, height, samples, oit)
|
|
|
116659
116613
|
const gl = browser .getContext ();
|
|
116660
116614
|
|
|
116661
116615
|
if (gl .getVersion () === 1 || width === 0 || height === 0)
|
|
116662
|
-
return Fallback;
|
|
116616
|
+
return new Fallback (browser, width, height, samples);
|
|
116663
116617
|
|
|
116664
116618
|
this .browser = browser;
|
|
116665
116619
|
this .context = gl;
|
|
@@ -116961,17 +116915,41 @@ Object .assign (MultiSampleFrameBuffer .prototype,
|
|
|
116961
116915
|
},
|
|
116962
116916
|
});
|
|
116963
116917
|
|
|
116964
|
-
|
|
116965
|
-
|
|
116966
|
-
|
|
116967
|
-
|
|
116968
|
-
|
|
116969
|
-
|
|
116970
|
-
|
|
116918
|
+
function Fallback (browser, width, height, samples)
|
|
116919
|
+
{
|
|
116920
|
+
const gl = browser .getContext ();
|
|
116921
|
+
|
|
116922
|
+
this .browser = browser;
|
|
116923
|
+
this .context = gl;
|
|
116924
|
+
this .width = width;
|
|
116925
|
+
this .height = height;
|
|
116926
|
+
this .samples = samples;
|
|
116927
|
+
}
|
|
116928
|
+
|
|
116929
|
+
Object .assign (Fallback .prototype,
|
|
116930
|
+
{
|
|
116931
|
+
getWidth () { return this .width; },
|
|
116932
|
+
getHeight () { return this .height; },
|
|
116933
|
+
getSamples () { return this .samples; },
|
|
116934
|
+
getOIT () { return false; },
|
|
116935
|
+
bind ()
|
|
116936
|
+
{
|
|
116937
|
+
const { context: gl } = this;
|
|
116938
|
+
|
|
116939
|
+
gl .bindFramebuffer (gl .FRAMEBUFFER, null);
|
|
116940
|
+
},
|
|
116941
|
+
clear ()
|
|
116942
|
+
{
|
|
116943
|
+
const { context: gl } = this;
|
|
116944
|
+
|
|
116945
|
+
gl .clearColor (0, 0, 0, 1);
|
|
116946
|
+
gl .clear (gl .COLOR_BUFFER_BIT);
|
|
116947
|
+
gl .blendFuncSeparate (gl .ONE, gl .ONE, gl .ZERO, gl .ONE_MINUS_SRC_ALPHA);
|
|
116948
|
+
},
|
|
116971
116949
|
blit: Function .prototype,
|
|
116972
116950
|
compose: Function .prototype,
|
|
116973
116951
|
dispose: Function .prototype,
|
|
116974
|
-
};
|
|
116952
|
+
});
|
|
116975
116953
|
|
|
116976
116954
|
const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
|
|
116977
116955
|
;
|
|
@@ -116979,7 +116957,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
|
|
|
116979
116957
|
x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
|
|
116980
116958
|
/* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
|
|
116981
116959
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
116982
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
116960
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(718);
|
|
116983
116961
|
/*******************************************************************************
|
|
116984
116962
|
*
|
|
116985
116963
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117882,7 +117860,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
|
|
|
117882
117860
|
x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
|
|
117883
117861
|
/* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
|
|
117884
117862
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
|
|
117885
|
-
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(
|
|
117863
|
+
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(718);
|
|
117886
117864
|
const KTXDecoder_default_ = class KTXDecoder
|
|
117887
117865
|
{
|
|
117888
117866
|
constructor (gl, externalKtxlib, scriptDir)
|
|
@@ -117954,6 +117932,7 @@ const KTXDecoder_default_ = class KTXDecoder
|
|
|
117954
117932
|
if (!texture)
|
|
117955
117933
|
throw new Error ("Could not load KTX data");
|
|
117956
117934
|
|
|
117935
|
+
// https://stackoverflow.com/a/25640078/1818915
|
|
117957
117936
|
texture .levels = 1 + Math .floor (Math .log2 (Math .max (ktxTexture .baseWidth, ktxTexture .baseHeight)));
|
|
117958
117937
|
texture .baseWidth = ktxTexture .baseWidth;
|
|
117959
117938
|
texture .baseHeight = ktxTexture .baseHeight;
|
|
@@ -118036,12 +118015,9 @@ const
|
|
|
118036
118015
|
_texture2DUnitIndex = Symbol (),
|
|
118037
118016
|
_texture3DUnitIndex = Symbol (),
|
|
118038
118017
|
_textureCubeUnitIndex = Symbol (),
|
|
118039
|
-
|
|
118040
|
-
|
|
118041
|
-
|
|
118042
|
-
_defaultTexture3DWhite = Symbol (),
|
|
118043
|
-
_defaultTextureCubeBlack = Symbol (),
|
|
118044
|
-
_defaultTextureCubeWhite = Symbol (),
|
|
118018
|
+
_defaultTexture2D = Symbol (),
|
|
118019
|
+
_defaultTexture3D = Symbol (),
|
|
118020
|
+
_defaultTextureCube = Symbol (),
|
|
118045
118021
|
_defaultTextureProperties = Symbol (),
|
|
118046
118022
|
_defaultTextureTransform = Symbol (),
|
|
118047
118023
|
_defaultTextureCoordinate = Symbol (),
|
|
@@ -118078,46 +118054,37 @@ Object .assign (X3DTexturingContext .prototype,
|
|
|
118078
118054
|
|
|
118079
118055
|
// Default Texture 2D Unit
|
|
118080
118056
|
|
|
118081
|
-
const defaultData =
|
|
118057
|
+
const defaultData = new Uint8Array ([ 255, 255, 255, 255 ]);
|
|
118082
118058
|
|
|
118083
|
-
|
|
118084
|
-
{
|
|
118085
|
-
this [_defaultTexture2D] = gl .createTexture ();
|
|
118059
|
+
this [_defaultTexture2D] = gl .createTexture ();
|
|
118086
118060
|
|
|
118087
|
-
|
|
118088
|
-
|
|
118089
|
-
|
|
118090
|
-
}
|
|
118061
|
+
gl .activeTexture (gl .TEXTURE0 + this [_texture2DUnits] [0]);
|
|
118062
|
+
gl .bindTexture (gl .TEXTURE_2D, this [_defaultTexture2D]);
|
|
118063
|
+
gl .texImage2D (gl .TEXTURE_2D, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118091
118064
|
|
|
118092
118065
|
// Default Texture 3D Unit
|
|
118093
118066
|
|
|
118094
118067
|
if (gl .getVersion () >= 2)
|
|
118095
118068
|
{
|
|
118096
|
-
|
|
118097
|
-
{
|
|
118098
|
-
this [_defaultTexture3D] = gl .createTexture ();
|
|
118069
|
+
this [_defaultTexture3D] = gl .createTexture ();
|
|
118099
118070
|
|
|
118100
|
-
|
|
118101
|
-
|
|
118102
|
-
|
|
118103
|
-
}
|
|
118071
|
+
gl .activeTexture (gl .TEXTURE0 + this [_texture3DUnits] [0]);
|
|
118072
|
+
gl .bindTexture (gl .TEXTURE_3D, this [_defaultTexture3D]);
|
|
118073
|
+
gl .texImage3D (gl .TEXTURE_3D, 0, gl .RGBA, 1, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118104
118074
|
}
|
|
118105
118075
|
|
|
118106
118076
|
// Default Texture Cube Unit
|
|
118107
118077
|
|
|
118108
|
-
|
|
118109
|
-
{
|
|
118110
|
-
this [_defaultTextureCube] = gl .createTexture ();
|
|
118078
|
+
this [_defaultTextureCube] = gl .createTexture ();
|
|
118111
118079
|
|
|
118112
|
-
|
|
118113
|
-
|
|
118114
|
-
|
|
118115
|
-
|
|
118116
|
-
|
|
118117
|
-
|
|
118118
|
-
|
|
118119
|
-
|
|
118120
|
-
}
|
|
118080
|
+
gl .activeTexture (gl .TEXTURE0 + this [_textureCubeUnits] [0]);
|
|
118081
|
+
gl .bindTexture (gl .TEXTURE_CUBE_MAP, this [_defaultTextureCube]);
|
|
118082
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_POSITIVE_Z, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118083
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118084
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_NEGATIVE_X, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118085
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_POSITIVE_X, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118086
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_POSITIVE_Y, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118087
|
+
gl .texImage2D (gl .TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, gl .RGBA, 1, 1, 0, gl .RGBA, gl .UNSIGNED_BYTE, defaultData);
|
|
118121
118088
|
|
|
118122
118089
|
// Init texture units.
|
|
118123
118090
|
|
|
@@ -118267,37 +118234,24 @@ Object .assign (X3DTexturingContext .prototype,
|
|
|
118267
118234
|
{
|
|
118268
118235
|
return NaN;
|
|
118269
118236
|
},
|
|
118270
|
-
|
|
118271
|
-
{
|
|
118272
|
-
return this [_defaultTexture2DBlack];
|
|
118273
|
-
},
|
|
118274
|
-
getDefaultTexture2DWhite ()
|
|
118237
|
+
getDefaultTexture2D ()
|
|
118275
118238
|
{
|
|
118276
|
-
return this [
|
|
118239
|
+
return this [_defaultTexture2D];
|
|
118277
118240
|
},
|
|
118278
|
-
|
|
118241
|
+
getDefaultTexture3D ()
|
|
118279
118242
|
{
|
|
118280
|
-
return this [
|
|
118243
|
+
return this [_defaultTexture3D];
|
|
118281
118244
|
},
|
|
118282
|
-
|
|
118245
|
+
getDefaultTextureCube ()
|
|
118283
118246
|
{
|
|
118284
|
-
return this [
|
|
118285
|
-
},
|
|
118286
|
-
getDefaultTextureCubeBlack ()
|
|
118287
|
-
{
|
|
118288
|
-
return this [_defaultTextureCubeBlack];
|
|
118289
|
-
},
|
|
118290
|
-
getDefaultTextureCubeWhite ()
|
|
118291
|
-
{
|
|
118292
|
-
return this [_defaultTextureCubeWhite];
|
|
118247
|
+
return this [_defaultTextureCube];
|
|
118293
118248
|
},
|
|
118294
118249
|
getDefaultTextureProperties ()
|
|
118295
118250
|
{
|
|
118296
118251
|
this [_defaultTextureProperties] = new Texturing_TextureProperties (this .getPrivateScene ());
|
|
118297
|
-
this [_defaultTextureProperties] ._magnificationFilter = "NICEST";
|
|
118298
|
-
this [_defaultTextureProperties] ._minificationFilter = "NEAREST_PIXEL_AVG_MIPMAP";
|
|
118299
118252
|
this [_defaultTextureProperties] ._generateMipMaps = true;
|
|
118300
|
-
this [_defaultTextureProperties] .
|
|
118253
|
+
this [_defaultTextureProperties] ._minificationFilter = "NICEST";
|
|
118254
|
+
this [_defaultTextureProperties] ._magnificationFilter = "NICEST";
|
|
118301
118255
|
|
|
118302
118256
|
this [_defaultTextureProperties] .setup ();
|
|
118303
118257
|
|
|
@@ -119458,7 +119412,7 @@ const Components_default_ = Components;
|
|
|
119458
119412
|
x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
|
|
119459
119413
|
/* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
|
|
119460
119414
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
119461
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
119415
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(718);
|
|
119462
119416
|
/*******************************************************************************
|
|
119463
119417
|
* MIT License
|
|
119464
119418
|
*
|
|
@@ -120597,7 +120551,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
|
|
|
120597
120551
|
x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
|
|
120598
120552
|
/* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
|
|
120599
120553
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
120600
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
120554
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(718);
|
|
120601
120555
|
/*******************************************************************************
|
|
120602
120556
|
*
|
|
120603
120557
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -121678,7 +121632,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
121678
121632
|
x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
|
|
121679
121633
|
/* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
|
|
121680
121634
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
121681
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
121635
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(718);
|
|
121682
121636
|
/*******************************************************************************
|
|
121683
121637
|
*
|
|
121684
121638
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -121810,8 +121764,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
|
|
|
121810
121764
|
x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
|
|
121811
121765
|
/* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
|
|
121812
121766
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
121813
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
121814
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
121767
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(718);
|
|
121768
|
+
/* provided dependency */ var pako = __webpack_require__(994);
|
|
121815
121769
|
Object .assign (jquery_$,
|
|
121816
121770
|
{
|
|
121817
121771
|
decodeText (input)
|
|
@@ -121888,14 +121842,14 @@ const jquery_default_ = jquery_$;
|
|
|
121888
121842
|
x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
|
|
121889
121843
|
/* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
|
|
121890
121844
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
121891
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
121845
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(89);
|
|
121892
121846
|
const libtess_default_ = libtess_libtess;
|
|
121893
121847
|
;
|
|
121894
121848
|
|
|
121895
121849
|
x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
|
|
121896
121850
|
/* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
|
|
121897
121851
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
121898
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
121852
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(718);
|
|
121899
121853
|
/*******************************************************************************
|
|
121900
121854
|
*
|
|
121901
121855
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122289,7 +122243,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
|
|
|
122289
122243
|
|
|
122290
122244
|
// Assign X3D to global namespace.
|
|
122291
122245
|
|
|
122292
|
-
window [Symbol .for ("X_ITE.X3D-9.0.
|
|
122246
|
+
window [Symbol .for ("X_ITE.X3D-9.0.2")] = x_ite_X3D;
|
|
122293
122247
|
|
|
122294
122248
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
122295
122249
|
|