x_ite 8.12.5 → 9.0.0
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 +4 -0
- 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 +359 -117
- 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 +28 -26
- 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 +33 -31
- 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 +35 -49
- 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 +27 -27
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/{TextureProjector.js → TextureProjection.js} +243 -193
- package/dist/assets/components/TextureProjection.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +175 -136
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +46 -47
- 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/assets/lib/README.md +16 -0
- package/dist/assets/lib/draco_decoder_gltf.js +1 -29
- package/dist/assets/lib/libktx.js +1 -0
- package/dist/assets/lib/libktx.wasm +0 -0
- package/dist/assets/lib/lut_ggx.png +0 -0
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +2505 -1767
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +2505 -1767
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -2
- package/dist/assets/components/TextureProjector.min.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE
|
|
1
|
+
/* X_ITE v9.0.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,39 +39,39 @@ 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-9.0.0")] .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-9.0.0")] .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-9.0.0")] .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-9.0.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/
|
|
54
|
-
const
|
|
55
|
-
var
|
|
53
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Lighting/X3DLightNode\")"
|
|
54
|
+
const X3DLightNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Components/Lighting/X3DLightNode");
|
|
55
|
+
var X3DLightNode_default = /*#__PURE__*/__webpack_require__.n(X3DLightNode_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-9.0.0")] .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/Base/X3DCast\")"
|
|
60
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
60
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Base/X3DCast");
|
|
61
61
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
63
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
63
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Vector3");
|
|
64
64
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
66
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
66
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Rotation4");
|
|
67
67
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
68
68
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
69
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
69
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
70
70
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
71
71
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
72
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
72
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("x_ite/Namespace");
|
|
73
73
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
74
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
74
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjection/X3DTextureProjectorNode.js
|
|
75
75
|
/*******************************************************************************
|
|
76
76
|
*
|
|
77
77
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -128,7 +128,7 @@ var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceOb
|
|
|
128
128
|
|
|
129
129
|
function X3DTextureProjectorNode (executionContext)
|
|
130
130
|
{
|
|
131
|
-
|
|
131
|
+
X3DLightNode_default().call (this, executionContext);
|
|
132
132
|
|
|
133
133
|
this .addType ((X3DConstants_default()).X3DTextureProjectorNode);
|
|
134
134
|
|
|
@@ -137,17 +137,24 @@ function X3DTextureProjectorNode (executionContext)
|
|
|
137
137
|
this ._location .setUnit ("length");
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, (
|
|
140
|
+
Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, (X3DLightNode_default()).prototype),
|
|
141
141
|
{
|
|
142
142
|
initialize ()
|
|
143
143
|
{
|
|
144
|
-
|
|
144
|
+
X3DLightNode_default().prototype .initialize .call (this);
|
|
145
145
|
|
|
146
|
-
this .
|
|
147
|
-
this .
|
|
146
|
+
this ._nearDistance .addInterest ("set_nearDistance__", this);
|
|
147
|
+
this ._farDistance .addInterest ("set_farDistance__", this);
|
|
148
|
+
this ._texture .addInterest ("set_texture__", this);
|
|
148
149
|
|
|
150
|
+
this .set_nearDistance__ ();
|
|
151
|
+
this .set_farDistance__ ();
|
|
149
152
|
this .set_texture__ ();
|
|
150
153
|
},
|
|
154
|
+
getLightKey ()
|
|
155
|
+
{
|
|
156
|
+
return 3;
|
|
157
|
+
},
|
|
151
158
|
getGlobal ()
|
|
152
159
|
{
|
|
153
160
|
return this ._global .getValue ();
|
|
@@ -162,15 +169,19 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, (X3D
|
|
|
162
169
|
},
|
|
163
170
|
getNearDistance ()
|
|
164
171
|
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
172
|
+
return this .nearDistance;
|
|
173
|
+
},
|
|
174
|
+
getNearParameter ()
|
|
175
|
+
{
|
|
176
|
+
return this .nearParameter;
|
|
168
177
|
},
|
|
169
178
|
getFarDistance ()
|
|
170
179
|
{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
180
|
+
return this .farDistance;
|
|
181
|
+
},
|
|
182
|
+
getFarParameter ()
|
|
183
|
+
{
|
|
184
|
+
return this .farParameter;
|
|
174
185
|
},
|
|
175
186
|
getTexture ()
|
|
176
187
|
{
|
|
@@ -217,28 +228,29 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, (X3D
|
|
|
217
228
|
return orientation .multRight (rotation);
|
|
218
229
|
};
|
|
219
230
|
})(),
|
|
220
|
-
|
|
231
|
+
set_nearDistance__ ()
|
|
221
232
|
{
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
const nearDistance = this ._nearDistance .getValue ();
|
|
234
|
+
|
|
235
|
+
this .nearDistance = nearDistance < 0 ? 0.125 : nearDistance;
|
|
236
|
+
this .nearParameter = nearDistance < 0 ? 0 : -1;
|
|
237
|
+
},
|
|
238
|
+
set_farDistance__ ()
|
|
239
|
+
{
|
|
240
|
+
const farDistance = this ._farDistance .getValue ();
|
|
241
|
+
|
|
242
|
+
this .farDistance = farDistance < 0 ? 100_000 : farDistance;
|
|
243
|
+
this .farParameter = farDistance < 0 ? 1 : 2;
|
|
232
244
|
},
|
|
233
245
|
set_texture__ ()
|
|
234
246
|
{
|
|
235
|
-
|
|
236
|
-
this .textureNode .removeInterest ("set_aspectRatio__", this);
|
|
247
|
+
this .textureNode ?.removeInterest ("set_aspectRatio__", this);
|
|
237
248
|
|
|
238
249
|
this .textureNode = X3DCast_default() ((X3DConstants_default()).X3DTexture2DNode, this ._texture);
|
|
239
250
|
|
|
240
|
-
|
|
241
|
-
|
|
251
|
+
this .textureNode ?.addInterest ("set_aspectRatio__", this);
|
|
252
|
+
|
|
253
|
+
this .setEnabled (!!this .textureNode);
|
|
242
254
|
|
|
243
255
|
this .set_aspectRatio__ ();
|
|
244
256
|
this .set_on__ ();
|
|
@@ -248,36 +260,7 @@ Object .assign (Object .setPrototypeOf (X3DTextureProjectorNode .prototype, (X3D
|
|
|
248
260
|
if (this .textureNode)
|
|
249
261
|
this ._aspectRatio = this .textureNode .getWidth () / this .textureNode .getHeight ();
|
|
250
262
|
else
|
|
251
|
-
this ._aspectRatio =
|
|
252
|
-
},
|
|
253
|
-
push (renderObject)
|
|
254
|
-
{
|
|
255
|
-
const textureProjectorContainer = this .getTextureProjectors () .pop ();
|
|
256
|
-
|
|
257
|
-
textureProjectorContainer .set (this,
|
|
258
|
-
renderObject .getModelViewMatrix () .get ());
|
|
259
|
-
|
|
260
|
-
if (this ._global .getValue ())
|
|
261
|
-
{
|
|
262
|
-
renderObject .getGlobalObjects () .push (textureProjectorContainer);
|
|
263
|
-
renderObject .getTextureProjectors () .push (textureProjectorContainer);
|
|
264
|
-
}
|
|
265
|
-
else
|
|
266
|
-
{
|
|
267
|
-
renderObject .getLocalObjects () .push (textureProjectorContainer);
|
|
268
|
-
renderObject .getTextureProjectors () .push (textureProjectorContainer);
|
|
269
|
-
|
|
270
|
-
++ renderObject .getLocalObjectsCount () [2];
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
pop (renderObject)
|
|
274
|
-
{
|
|
275
|
-
if (this ._global .getValue ())
|
|
276
|
-
return;
|
|
277
|
-
|
|
278
|
-
renderObject .getLocalObjects () .pop ();
|
|
279
|
-
|
|
280
|
-
-- renderObject .getLocalObjectsCount () [2];
|
|
263
|
+
this ._aspectRatio = 1;
|
|
281
264
|
},
|
|
282
265
|
});
|
|
283
266
|
|
|
@@ -290,7 +273,7 @@ Object .defineProperties (X3DTextureProjectorNode,
|
|
|
290
273
|
},
|
|
291
274
|
componentName:
|
|
292
275
|
{
|
|
293
|
-
value: "
|
|
276
|
+
value: "TextureProjection",
|
|
294
277
|
enumerable: true,
|
|
295
278
|
},
|
|
296
279
|
});
|
|
@@ -298,15 +281,18 @@ Object .defineProperties (X3DTextureProjectorNode,
|
|
|
298
281
|
const __default__ = X3DTextureProjectorNode;
|
|
299
282
|
;
|
|
300
283
|
|
|
301
|
-
Namespace_default().add ("X3DTextureProjectorNode", "x_ite/Components/
|
|
302
|
-
/* harmony default export */ const
|
|
284
|
+
Namespace_default().add ("X3DTextureProjectorNode", "x_ite/Components/TextureProjection/X3DTextureProjectorNode", __default__);
|
|
285
|
+
/* harmony default export */ const TextureProjection_X3DTextureProjectorNode = (__default__);
|
|
303
286
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
|
|
304
|
-
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
287
|
+
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Geometry/Camera");
|
|
305
288
|
var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
|
|
289
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Utility/MatrixStack\")"
|
|
290
|
+
const MatrixStack_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Math/Utility/MatrixStack");
|
|
291
|
+
var MatrixStack_default = /*#__PURE__*/__webpack_require__.n(MatrixStack_namespaceObject);
|
|
306
292
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
307
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-
|
|
293
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.0")] .require ("standard/Utility/ObjectCache");
|
|
308
294
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
309
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
295
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjection/TextureProjector.js
|
|
310
296
|
/*******************************************************************************
|
|
311
297
|
*
|
|
312
298
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -365,12 +351,13 @@ var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespa
|
|
|
365
351
|
|
|
366
352
|
|
|
367
353
|
|
|
354
|
+
|
|
368
355
|
const TextureProjectorCache = ObjectCache_default() (TextureProjectorContainer);
|
|
369
356
|
|
|
370
357
|
function TextureProjectorContainer ()
|
|
371
358
|
{
|
|
372
359
|
this .projectionMatrix = new (Matrix4_default()) ();
|
|
373
|
-
this .modelViewMatrix = new (
|
|
360
|
+
this .modelViewMatrix = new (MatrixStack_default()) ((Matrix4_default()));
|
|
374
361
|
this .modelMatrix = new (Matrix4_default()) ();
|
|
375
362
|
this .invTextureSpaceMatrix = new (Matrix4_default()) ();
|
|
376
363
|
this .invTextureSpaceProjectionMatrix = new (Matrix4_default()) ();
|
|
@@ -378,92 +365,113 @@ function TextureProjectorContainer ()
|
|
|
378
365
|
this .locationArray = new Float32Array (3);
|
|
379
366
|
this .direction = new (Vector3_default()) (0, 0, 0);
|
|
380
367
|
this .rotation = new (Rotation4_default()) ();
|
|
381
|
-
this .
|
|
382
|
-
this .
|
|
368
|
+
this .matrix = new (Matrix4_default()) ();
|
|
369
|
+
this .matrixArray = new Float32Array (16);
|
|
370
|
+
this .textureMatrix = new (Matrix4_default()) ();
|
|
383
371
|
}
|
|
384
372
|
|
|
385
373
|
Object .assign (TextureProjectorContainer .prototype,
|
|
386
374
|
{
|
|
387
|
-
set (
|
|
375
|
+
set (lightNode, groupNode, modelViewMatrix)
|
|
388
376
|
{
|
|
389
|
-
this .browser
|
|
390
|
-
this .
|
|
377
|
+
this .browser = lightNode .getBrowser ();
|
|
378
|
+
this .lightNode = lightNode;
|
|
379
|
+
this .global = lightNode .getGlobal ();
|
|
391
380
|
|
|
392
|
-
this .modelViewMatrix .
|
|
381
|
+
this .modelViewMatrix .pushMatrix (modelViewMatrix);
|
|
382
|
+
this .textureMatrix .set (... lightNode .getTexture () .getMatrix ());
|
|
393
383
|
},
|
|
384
|
+
renderShadowMap (renderObject)
|
|
385
|
+
{ },
|
|
394
386
|
setGlobalVariables (renderObject)
|
|
395
387
|
{
|
|
396
388
|
const
|
|
397
|
-
|
|
389
|
+
lightNode = this .lightNode,
|
|
398
390
|
cameraSpaceMatrix = renderObject .getCameraSpaceMatrix () .get (),
|
|
399
|
-
modelMatrix = this .modelMatrix .assign (this .modelViewMatrix) .multRight (cameraSpaceMatrix),
|
|
400
|
-
invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (
|
|
391
|
+
modelMatrix = this .modelMatrix .assign (this .modelViewMatrix .get ()) .multRight (cameraSpaceMatrix),
|
|
392
|
+
invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (this .global ? modelMatrix : (Matrix4_default()).Identity);
|
|
401
393
|
|
|
402
|
-
this .rotation .setFromToVec ((Vector3_default()).zAxis, this .direction .assign (
|
|
403
|
-
|
|
394
|
+
this .rotation .setFromToVec ((Vector3_default()).zAxis, this .direction .assign (lightNode .getDirection ()) .negate ());
|
|
395
|
+
lightNode .straightenHorizon (this .rotation);
|
|
404
396
|
|
|
405
|
-
invTextureSpaceMatrix .translate (
|
|
397
|
+
invTextureSpaceMatrix .translate (lightNode .getLocation ());
|
|
406
398
|
invTextureSpaceMatrix .rotate (this .rotation);
|
|
407
399
|
invTextureSpaceMatrix .inverse ();
|
|
408
400
|
|
|
409
401
|
const
|
|
410
|
-
width =
|
|
411
|
-
height =
|
|
412
|
-
nearDistance =
|
|
413
|
-
farDistance =
|
|
414
|
-
fieldOfView =
|
|
402
|
+
width = lightNode .getTexture () .getWidth (),
|
|
403
|
+
height = lightNode .getTexture () .getHeight (),
|
|
404
|
+
nearDistance = lightNode .getNearDistance (),
|
|
405
|
+
farDistance = lightNode .getFarDistance (),
|
|
406
|
+
fieldOfView = lightNode .getFieldOfView ();
|
|
415
407
|
|
|
416
408
|
Camera_default().perspective (fieldOfView, nearDistance, farDistance, width, height, this .projectionMatrix);
|
|
417
409
|
|
|
418
|
-
if (!
|
|
410
|
+
if (!this .global)
|
|
419
411
|
invTextureSpaceMatrix .multLeft (modelMatrix .inverse ());
|
|
420
412
|
|
|
421
|
-
this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (
|
|
413
|
+
this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (lightNode .getBiasMatrix ());
|
|
422
414
|
|
|
423
|
-
this .
|
|
424
|
-
this .
|
|
415
|
+
this .matrix .assign (cameraSpaceMatrix) .multRight (this .invTextureSpaceProjectionMatrix) .multRight (this .textureMatrix);
|
|
416
|
+
this .matrixArray .set (this .matrix);
|
|
425
417
|
|
|
426
|
-
this .modelViewMatrix .multVecMatrix (this .location .assign (
|
|
418
|
+
this .modelViewMatrix .get () .multVecMatrix (this .location .assign (lightNode ._location .getValue ()));
|
|
427
419
|
this .locationArray .set (this .location);
|
|
428
420
|
},
|
|
429
421
|
setShaderUniforms (gl, shaderObject, renderObject)
|
|
430
422
|
{
|
|
431
|
-
const i = shaderObject .
|
|
432
|
-
|
|
433
|
-
if (shaderObject .hasTextureProjector (i, this))
|
|
434
|
-
return;
|
|
423
|
+
const i = shaderObject .numTextureProjectors ++;
|
|
435
424
|
|
|
436
425
|
const
|
|
437
|
-
|
|
438
|
-
|
|
426
|
+
lightNode = this .lightNode,
|
|
427
|
+
texture = lightNode .getTexture (),
|
|
428
|
+
textureUnit = this .global
|
|
429
|
+
? (this .textureUnit = this .textureUnit ?? this .browser .popTexture2DUnit ())
|
|
430
|
+
: this .browser .getTexture2DUnit ();
|
|
439
431
|
|
|
440
432
|
gl .activeTexture (gl .TEXTURE0 + textureUnit);
|
|
441
433
|
gl .bindTexture (gl .TEXTURE_2D, texture .getTexture ());
|
|
442
|
-
gl .uniform1i (shaderObject .
|
|
434
|
+
gl .uniform1i (shaderObject .x3d_TextureProjectorTexture [i], textureUnit);
|
|
435
|
+
|
|
436
|
+
if (shaderObject .hasTextureProjector (i, this))
|
|
437
|
+
return;
|
|
438
|
+
|
|
439
|
+
const
|
|
440
|
+
nearParameter = lightNode .getNearParameter (),
|
|
441
|
+
farParameter = lightNode .getFarParameter ();
|
|
443
442
|
|
|
444
|
-
gl .
|
|
445
|
-
gl .
|
|
443
|
+
gl .uniform3f (shaderObject .x3d_TextureProjectorColor [i], ... lightNode .getColor ());
|
|
444
|
+
gl .uniform1f (shaderObject .x3d_TextureProjectorIntensity [i], lightNode .getIntensity ());
|
|
445
|
+
gl .uniform3fv (shaderObject .x3d_TextureProjectorLocation [i], this .locationArray);
|
|
446
|
+
gl .uniform3f (shaderObject .x3d_TextureProjectorParams [i], nearParameter, farParameter, texture .isLinear ());
|
|
447
|
+
gl .uniformMatrix4fv (shaderObject .x3d_TextureProjectorMatrix [i], false, this .matrixArray);
|
|
446
448
|
},
|
|
447
449
|
dispose ()
|
|
448
450
|
{
|
|
451
|
+
this .browser .pushTexture2DUnit (this .textureUnit);
|
|
452
|
+
|
|
453
|
+
this .modelViewMatrix .clear ();
|
|
454
|
+
|
|
455
|
+
this .textureUnit = undefined;
|
|
456
|
+
|
|
449
457
|
TextureProjectorCache .push (this);
|
|
450
458
|
},
|
|
451
459
|
});
|
|
452
460
|
|
|
453
461
|
function TextureProjector (executionContext)
|
|
454
462
|
{
|
|
455
|
-
|
|
463
|
+
TextureProjection_X3DTextureProjectorNode .call (this, executionContext);
|
|
456
464
|
|
|
457
465
|
this .addType ((X3DConstants_default()).TextureProjector);
|
|
458
466
|
|
|
459
467
|
this ._fieldOfView .setUnit ("angle");
|
|
460
468
|
}
|
|
461
469
|
|
|
462
|
-
Object .assign (Object .setPrototypeOf (TextureProjector .prototype,
|
|
470
|
+
Object .assign (Object .setPrototypeOf (TextureProjector .prototype, TextureProjection_X3DTextureProjectorNode .prototype),
|
|
463
471
|
{
|
|
464
472
|
initialize ()
|
|
465
473
|
{
|
|
466
|
-
|
|
474
|
+
TextureProjection_X3DTextureProjectorNode .prototype .initialize .call (this);
|
|
467
475
|
},
|
|
468
476
|
getFieldOfView ()
|
|
469
477
|
{
|
|
@@ -471,7 +479,7 @@ Object .assign (Object .setPrototypeOf (TextureProjector .prototype, TextureProj
|
|
|
471
479
|
|
|
472
480
|
return fov > 0 && fov < Math .PI ? fov : Math .PI / 4;
|
|
473
481
|
},
|
|
474
|
-
|
|
482
|
+
getLights ()
|
|
475
483
|
{
|
|
476
484
|
return TextureProjectorCache;
|
|
477
485
|
},
|
|
@@ -486,7 +494,7 @@ Object .defineProperties (TextureProjector,
|
|
|
486
494
|
},
|
|
487
495
|
componentName:
|
|
488
496
|
{
|
|
489
|
-
value: "
|
|
497
|
+
value: "TextureProjection",
|
|
490
498
|
enumerable: true,
|
|
491
499
|
},
|
|
492
500
|
containerField:
|
|
@@ -502,18 +510,28 @@ Object .defineProperties (TextureProjector,
|
|
|
502
510
|
fieldDefinitions:
|
|
503
511
|
{
|
|
504
512
|
value: new (FieldDefinitionArray_default()) ([
|
|
505
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
506
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
507
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
508
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
509
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
510
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
511
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
512
|
-
|
|
513
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
514
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
515
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).
|
|
516
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
513
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
514
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
|
|
515
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "global", new (Fields_default()).SFBool (true)),
|
|
516
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
517
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "color", new (Fields_default()).SFColor (1, 1, 1)),
|
|
518
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "intensity", new (Fields_default()).SFFloat (1)),
|
|
519
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "ambientIntensity", new (Fields_default()).SFFloat ()),
|
|
520
|
+
|
|
521
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "location", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
522
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 0, 1)),
|
|
523
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "upVector", new (Fields_default()).SFVec3f (0, 0, 1)),
|
|
524
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fieldOfView", new (Fields_default()).SFFloat (0.785398)),
|
|
525
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "nearDistance", new (Fields_default()).SFFloat (-1)),
|
|
526
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "farDistance", new (Fields_default()).SFFloat (-1)),
|
|
527
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "aspectRatio", new (Fields_default()).SFFloat ()),
|
|
528
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "texture", new (Fields_default()).SFNode ()),
|
|
529
|
+
|
|
530
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadows", new (Fields_default()).SFBool ()),
|
|
531
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowColor", new (Fields_default()).SFColor ()),
|
|
532
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowIntensity", new (Fields_default()).SFFloat (1)),
|
|
533
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowBias", new (Fields_default()).SFFloat (0.005)),
|
|
534
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "shadowMapSize", new (Fields_default()).SFInt32 (1024)),
|
|
517
535
|
]),
|
|
518
536
|
enumerable: true,
|
|
519
537
|
},
|
|
@@ -522,9 +540,9 @@ Object .defineProperties (TextureProjector,
|
|
|
522
540
|
const TextureProjector_default_ = TextureProjector;
|
|
523
541
|
;
|
|
524
542
|
|
|
525
|
-
Namespace_default().add ("TextureProjector", "x_ite/Components/
|
|
526
|
-
/* harmony default export */ const
|
|
527
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
543
|
+
Namespace_default().add ("TextureProjector", "x_ite/Components/TextureProjection/TextureProjector", TextureProjector_default_);
|
|
544
|
+
/* harmony default export */ const TextureProjection_TextureProjector = (TextureProjector_default_);
|
|
545
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjection/TextureProjectorParallel.js
|
|
528
546
|
/*******************************************************************************
|
|
529
547
|
*
|
|
530
548
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -583,12 +601,13 @@ Namespace_default().add ("TextureProjector", "x_ite/Components/TextureProjector/
|
|
|
583
601
|
|
|
584
602
|
|
|
585
603
|
|
|
604
|
+
|
|
586
605
|
const TextureProjectorParallelCache = ObjectCache_default() (TextureProjectorParallelContainer);
|
|
587
606
|
|
|
588
607
|
function TextureProjectorParallelContainer ()
|
|
589
608
|
{
|
|
590
609
|
this .projectionMatrix = new (Matrix4_default()) ();
|
|
591
|
-
this .modelViewMatrix = new (
|
|
610
|
+
this .modelViewMatrix = new (MatrixStack_default()) ((Matrix4_default()));
|
|
592
611
|
this .modelMatrix = new (Matrix4_default()) ();
|
|
593
612
|
this .invTextureSpaceMatrix = new (Matrix4_default()) ();
|
|
594
613
|
this .location = new (Vector3_default()) (0, 0, 0);
|
|
@@ -596,46 +615,51 @@ function TextureProjectorParallelContainer ()
|
|
|
596
615
|
this .invTextureSpaceProjectionMatrix = new (Matrix4_default()) ();
|
|
597
616
|
this .direction = new (Vector3_default()) (0, 0, 0);
|
|
598
617
|
this .rotation = new (Rotation4_default()) ();
|
|
599
|
-
this .
|
|
600
|
-
this .
|
|
618
|
+
this .matrix = new (Matrix4_default()) ();
|
|
619
|
+
this .matrixArray = new Float32Array (16);
|
|
620
|
+
this .textureMatrix = new (Matrix4_default()) ();
|
|
601
621
|
}
|
|
602
622
|
|
|
603
623
|
Object .assign (TextureProjectorParallelContainer .prototype,
|
|
604
624
|
{
|
|
605
|
-
set (
|
|
625
|
+
set (lightNode, groupNode, modelViewMatrix)
|
|
606
626
|
{
|
|
607
|
-
this .browser
|
|
608
|
-
this .
|
|
627
|
+
this .browser = lightNode .getBrowser ();
|
|
628
|
+
this .lightNode = lightNode;
|
|
629
|
+
this .global = lightNode .getGlobal ();
|
|
609
630
|
|
|
610
|
-
this .modelViewMatrix .
|
|
631
|
+
this .modelViewMatrix .pushMatrix (modelViewMatrix);
|
|
632
|
+
this .textureMatrix .set (... lightNode .getTexture () .getMatrix ());
|
|
611
633
|
},
|
|
634
|
+
renderShadowMap (renderObject)
|
|
635
|
+
{ },
|
|
612
636
|
setGlobalVariables (renderObject)
|
|
613
637
|
{
|
|
614
638
|
const
|
|
615
|
-
|
|
639
|
+
lightNode = this .lightNode,
|
|
616
640
|
cameraSpaceMatrix = renderObject .getCameraSpaceMatrix () .get (),
|
|
617
|
-
modelMatrix = this .modelMatrix .assign (this .modelViewMatrix) .multRight (cameraSpaceMatrix),
|
|
618
|
-
invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (
|
|
641
|
+
modelMatrix = this .modelMatrix .assign (this .modelViewMatrix .get ()) .multRight (cameraSpaceMatrix),
|
|
642
|
+
invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (this .global ? modelMatrix : (Matrix4_default()).Identity);
|
|
619
643
|
|
|
620
|
-
this .rotation .setFromToVec ((Vector3_default()).zAxis, this .direction .assign (
|
|
621
|
-
|
|
644
|
+
this .rotation .setFromToVec ((Vector3_default()).zAxis, this .direction .assign (lightNode .getDirection ()) .negate ());
|
|
645
|
+
lightNode .straightenHorizon (this .rotation);
|
|
622
646
|
|
|
623
|
-
invTextureSpaceMatrix .translate (
|
|
647
|
+
invTextureSpaceMatrix .translate (lightNode .getLocation ());
|
|
624
648
|
invTextureSpaceMatrix .rotate (this .rotation);
|
|
625
649
|
invTextureSpaceMatrix .inverse ();
|
|
626
650
|
|
|
627
651
|
const
|
|
628
|
-
width =
|
|
629
|
-
height =
|
|
652
|
+
width = lightNode .getTexture () .getWidth (),
|
|
653
|
+
height = lightNode .getTexture () .getHeight (),
|
|
630
654
|
aspect = width / height,
|
|
631
|
-
minimumX =
|
|
632
|
-
maximumX =
|
|
633
|
-
minimumY =
|
|
634
|
-
maximumY =
|
|
635
|
-
sizeX =
|
|
636
|
-
sizeY =
|
|
637
|
-
nearDistance =
|
|
638
|
-
farDistance =
|
|
655
|
+
minimumX = lightNode .getMinimumX (),
|
|
656
|
+
maximumX = lightNode .getMaximumX (),
|
|
657
|
+
minimumY = lightNode .getMinimumY (),
|
|
658
|
+
maximumY = lightNode .getMaximumY (),
|
|
659
|
+
sizeX = lightNode .getSizeX (),
|
|
660
|
+
sizeY = lightNode .getSizeY (),
|
|
661
|
+
nearDistance = lightNode .getNearDistance (),
|
|
662
|
+
farDistance = lightNode .getFarDistance ();
|
|
639
663
|
|
|
640
664
|
if (aspect > sizeX / sizeY)
|
|
641
665
|
{
|
|
@@ -654,55 +678,71 @@ Object .assign (TextureProjectorParallelContainer .prototype,
|
|
|
654
678
|
Camera_default().ortho (minimumX, maximumX, center - size1_2, center + size1_2, nearDistance, farDistance, this .projectionMatrix);
|
|
655
679
|
}
|
|
656
680
|
|
|
657
|
-
if (!
|
|
681
|
+
if (!this .global)
|
|
658
682
|
invTextureSpaceMatrix .multLeft (modelMatrix .inverse ());
|
|
659
683
|
|
|
660
|
-
this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (
|
|
684
|
+
this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (lightNode .getBiasMatrix ());
|
|
661
685
|
|
|
662
|
-
this .
|
|
663
|
-
this .
|
|
686
|
+
this .matrix .assign (cameraSpaceMatrix) .multRight (this .invTextureSpaceProjectionMatrix) .multRight (this .textureMatrix);
|
|
687
|
+
this .matrixArray .set (this .matrix);
|
|
664
688
|
|
|
665
|
-
this .modelViewMatrix .multVecMatrix (this .location .assign (
|
|
689
|
+
this .modelViewMatrix .get () .multVecMatrix (this .location .assign (lightNode ._location .getValue ()));
|
|
666
690
|
this .locationArray .set (this .location);
|
|
667
691
|
},
|
|
668
692
|
setShaderUniforms (gl, shaderObject, renderObject)
|
|
669
693
|
{
|
|
670
|
-
const i = shaderObject .
|
|
671
|
-
|
|
672
|
-
if (shaderObject .hasTextureProjector (i, this))
|
|
673
|
-
return;
|
|
694
|
+
const i = shaderObject .numTextureProjectors ++;
|
|
674
695
|
|
|
675
696
|
const
|
|
676
|
-
|
|
677
|
-
|
|
697
|
+
lightNode = this .lightNode,
|
|
698
|
+
texture = lightNode .getTexture (),
|
|
699
|
+
textureUnit = this .global
|
|
700
|
+
? (this .textureUnit = this .textureUnit ?? this .browser .popTexture2DUnit ())
|
|
701
|
+
: this .browser .getTexture2DUnit ();
|
|
678
702
|
|
|
679
703
|
gl .activeTexture (gl .TEXTURE0 + textureUnit);
|
|
680
704
|
gl .bindTexture (gl .TEXTURE_2D, texture .getTexture ());
|
|
681
|
-
gl .uniform1i (shaderObject .
|
|
705
|
+
gl .uniform1i (shaderObject .x3d_TextureProjectorTexture [i], textureUnit);
|
|
706
|
+
|
|
707
|
+
if (shaderObject .hasTextureProjector (i, this))
|
|
708
|
+
return;
|
|
709
|
+
|
|
710
|
+
const
|
|
711
|
+
nearParameter = lightNode .getNearParameter (),
|
|
712
|
+
farParameter = lightNode .getFarParameter ();
|
|
682
713
|
|
|
683
|
-
gl .
|
|
684
|
-
gl .
|
|
714
|
+
gl .uniform3f (shaderObject .x3d_TextureProjectorColor [i], ... lightNode .getColor ());
|
|
715
|
+
gl .uniform1f (shaderObject .x3d_TextureProjectorIntensity [i], lightNode .getIntensity ());
|
|
716
|
+
gl .uniform3fv (shaderObject .x3d_TextureProjectorLocation [i], this .locationArray);
|
|
717
|
+
gl .uniform3f (shaderObject .x3d_TextureProjectorParams [i], nearParameter, farParameter, texture .isLinear ());
|
|
718
|
+
gl .uniformMatrix4fv (shaderObject .x3d_TextureProjectorMatrix [i], false, this .matrixArray);
|
|
685
719
|
},
|
|
686
720
|
dispose ()
|
|
687
721
|
{
|
|
722
|
+
this .browser .pushTexture2DUnit (this .textureUnit);
|
|
723
|
+
|
|
724
|
+
this .modelViewMatrix .clear ();
|
|
725
|
+
|
|
726
|
+
this .textureUnit = undefined;
|
|
727
|
+
|
|
688
728
|
TextureProjectorParallelCache .push (this);
|
|
689
729
|
},
|
|
690
730
|
});
|
|
691
731
|
|
|
692
732
|
function TextureProjectorParallel (executionContext)
|
|
693
733
|
{
|
|
694
|
-
|
|
734
|
+
TextureProjection_X3DTextureProjectorNode .call (this, executionContext);
|
|
695
735
|
|
|
696
736
|
this .addType ((X3DConstants_default()).TextureProjectorParallel);
|
|
697
737
|
|
|
698
738
|
this ._fieldOfView .setUnit ("length");
|
|
699
739
|
}
|
|
700
740
|
|
|
701
|
-
Object .assign (Object .setPrototypeOf (TextureProjectorParallel .prototype,
|
|
741
|
+
Object .assign (Object .setPrototypeOf (TextureProjectorParallel .prototype, TextureProjection_X3DTextureProjectorNode .prototype),
|
|
702
742
|
{
|
|
703
743
|
initialize ()
|
|
704
744
|
{
|
|
705
|
-
|
|
745
|
+
TextureProjection_X3DTextureProjectorNode .prototype .initialize .call (this);
|
|
706
746
|
|
|
707
747
|
this ._fieldOfView .addInterest ("set_fieldOfView___", this);
|
|
708
748
|
|
|
@@ -744,7 +784,7 @@ Object .assign (Object .setPrototypeOf (TextureProjectorParallel .prototype, Tex
|
|
|
744
784
|
{
|
|
745
785
|
return this .sizeY;
|
|
746
786
|
},
|
|
747
|
-
|
|
787
|
+
getLights ()
|
|
748
788
|
{
|
|
749
789
|
return TextureProjectorParallelCache;
|
|
750
790
|
},
|
|
@@ -759,7 +799,7 @@ Object .defineProperties (TextureProjectorParallel,
|
|
|
759
799
|
},
|
|
760
800
|
componentName:
|
|
761
801
|
{
|
|
762
|
-
value: "
|
|
802
|
+
value: "TextureProjection",
|
|
763
803
|
enumerable: true,
|
|
764
804
|
},
|
|
765
805
|
containerField:
|
|
@@ -775,18 +815,28 @@ Object .defineProperties (TextureProjectorParallel,
|
|
|
775
815
|
fieldDefinitions:
|
|
776
816
|
{
|
|
777
817
|
value: new (FieldDefinitionArray_default()) ([
|
|
778
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
779
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
780
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
781
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
782
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
783
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
784
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
785
|
-
|
|
786
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
787
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
788
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).
|
|
789
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput,
|
|
818
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
819
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
|
|
820
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "global", new (Fields_default()).SFBool (true)),
|
|
821
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "on", new (Fields_default()).SFBool (true)),
|
|
822
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "color", new (Fields_default()).SFColor (1, 1, 1)),
|
|
823
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "intensity", new (Fields_default()).SFFloat (1)),
|
|
824
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "ambientIntensity",new (Fields_default()).SFFloat ()),
|
|
825
|
+
|
|
826
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "location", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
827
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "direction", new (Fields_default()).SFVec3f (0, 0, 1)),
|
|
828
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "upVector", new (Fields_default()).SFVec3f (0, 0, 1)),
|
|
829
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fieldOfView", new (Fields_default()).MFFloat (-1, -1, 1, 1)),
|
|
830
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "nearDistance", new (Fields_default()).SFFloat (-1)),
|
|
831
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "farDistance", new (Fields_default()).SFFloat (-1)),
|
|
832
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "aspectRatio", new (Fields_default()).SFFloat ()),
|
|
833
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "texture", new (Fields_default()).SFNode ()),
|
|
834
|
+
|
|
835
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadows", new (Fields_default()).SFBool ()),
|
|
836
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowColor", new (Fields_default()).SFColor ()),
|
|
837
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowIntensity", new (Fields_default()).SFFloat (1)),
|
|
838
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadowBias", new (Fields_default()).SFFloat (0.005)),
|
|
839
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "shadowMapSize", new (Fields_default()).SFInt32 (1024)),
|
|
790
840
|
]),
|
|
791
841
|
enumerable: true,
|
|
792
842
|
},
|
|
@@ -795,9 +845,9 @@ Object .defineProperties (TextureProjectorParallel,
|
|
|
795
845
|
const TextureProjectorParallel_default_ = TextureProjectorParallel;
|
|
796
846
|
;
|
|
797
847
|
|
|
798
|
-
Namespace_default().add ("TextureProjectorParallel", "x_ite/Components/
|
|
799
|
-
/* harmony default export */ const
|
|
800
|
-
;// CONCATENATED MODULE: ./src/assets/components/
|
|
848
|
+
Namespace_default().add ("TextureProjectorParallel", "x_ite/Components/TextureProjection/TextureProjectorParallel", TextureProjectorParallel_default_);
|
|
849
|
+
/* harmony default export */ const TextureProjection_TextureProjectorParallel = (TextureProjectorParallel_default_);
|
|
850
|
+
;// CONCATENATED MODULE: ./src/assets/components/TextureProjection.js
|
|
801
851
|
/*******************************************************************************
|
|
802
852
|
*
|
|
803
853
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -851,22 +901,22 @@ Namespace_default().add ("TextureProjectorParallel", "x_ite/Components/TexturePr
|
|
|
851
901
|
|
|
852
902
|
|
|
853
903
|
Components_default().add ({
|
|
854
|
-
name: "
|
|
904
|
+
name: "TextureProjection",
|
|
855
905
|
concreteNodes:
|
|
856
906
|
[
|
|
857
|
-
|
|
858
|
-
|
|
907
|
+
TextureProjection_TextureProjector,
|
|
908
|
+
TextureProjection_TextureProjectorParallel,
|
|
859
909
|
],
|
|
860
910
|
abstractNodes:
|
|
861
911
|
[
|
|
862
|
-
|
|
912
|
+
TextureProjection_X3DTextureProjectorNode,
|
|
863
913
|
],
|
|
864
914
|
});
|
|
865
915
|
|
|
866
|
-
const
|
|
916
|
+
const TextureProjection_default_ = undefined;
|
|
867
917
|
;
|
|
868
918
|
|
|
869
|
-
Namespace_default().add ("
|
|
870
|
-
/* harmony default export */ const
|
|
919
|
+
Namespace_default().add ("TextureProjection", "assets/components/TextureProjection", TextureProjection_default_);
|
|
920
|
+
/* harmony default export */ const TextureProjection = ((/* unused pure expression or super */ null && (TextureProjection_default_)));
|
|
871
921
|
/******/ })()
|
|
872
922
|
;
|