x_ite 8.7.6 → 8.7.8

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.
Files changed (52) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +18 -18
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +24 -24
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +22 -22
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +18 -18
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +28 -28
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +14 -14
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +19 -19
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +92 -65
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/docs/_posts/getting-started.md +1 -1
  47. package/package.json +1 -1
  48. package/src/assets/shaders/webgl1/include/Shadow.glsl.js +11 -2
  49. package/src/assets/shaders/webgl2/include/Shadow.glsl.js +11 -2
  50. package/src/tests.js +0 -1
  51. package/src/x_ite/Base/X3DObjectArrayField.js +15 -6
  52. package/src/x_ite/Browser/VERSION.js +1 -1
package/dist/x_ite.zip CHANGED
Binary file
package/docs/_config.yml CHANGED
@@ -20,7 +20,7 @@ timezone:
20
20
  # ↓ --------------------------
21
21
 
22
22
  title: X_ITE X3D Browser # the main title
23
- version: 8.7.6 # x_ite latest version
23
+ version: 8.7.8 # x_ite latest version
24
24
  size: 290 # size in kb
25
25
  x3d_latest_version: 4.0 # x3d latest version
26
26
 
@@ -742,7 +742,7 @@ A Boolean value (`true` or `false`) to indicate whether the Timings Panel should
742
742
 
743
743
  ### update
744
744
 
745
- A Boolean value (`true`, `false` or `auto`) to indicate whether browser events should be processed. The default value for the *update* attribute is `true`. A value of `true` will effectively call `Browser.beginUpdate`, a value of `false` will call `Browser.endUpdate`. If the value is `auto`, the effective value is determined by the visibility of the \<x3d-canvas\> element.
745
+ A Boolean value (`true`, `false` or `auto`) to indicate whether browser events should be processed. The default value for the *update* attribute is `true`. A value of `true` will enable event processing, a value of `false` will stop event processing. If the value is `auto`, the effective value is determined by the visibility of the \<x3d-canvas\> element.
746
746
 
747
747
  ### url
748
748
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "8.7.6",
3
+ "version": "8.7.8",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
5
5
  "homepage": "https://create3000.github.io/x_ite/",
6
6
  "author": "Holger Seelig <holger.seelig@gmail.com>",
@@ -242,6 +242,9 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
242
242
  shadowCoord .z -= light .shadowBias;
243
243
  shadowCoord .xyz /= shadowCoord .w;
244
244
 
245
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
246
+ return 0.0;
247
+
245
248
  float dx0 = - texelSize .x;
246
249
  float dy0 = - texelSize .y;
247
250
  float dx1 = + texelSize .x;
@@ -269,6 +272,9 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
269
272
  shadowCoord .z -= light .shadowBias;
270
273
  shadowCoord .xyz /= shadowCoord .w;
271
274
 
275
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
276
+ return 0.0;
277
+
272
278
  float dx0 = - texelSize.x;
273
279
  float dy0 = - texelSize.y;
274
280
  float dx1 = + texelSize.x;
@@ -290,11 +296,14 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
290
296
 
291
297
  #else // no percentage-closer filtering
292
298
 
293
- vec4 shadowCoord = shadowMatrix * vec4 (vertex, 1.0);
299
+ vec4 shadowCoord = light .shadowMatrix * vec4 (vertex, 1.0);
294
300
 
295
- shadowCoord .z -= shadowBias;
301
+ shadowCoord .z -= light .shadowBias;
296
302
  shadowCoord .xyz /= shadowCoord .w;
297
303
 
304
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
305
+ return 0.0;
306
+
298
307
  float value = texture2DCompare (index, shadowCoord .xy, shadowCoord .z);
299
308
 
300
309
  return light .shadowIntensity * value;
@@ -256,6 +256,9 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
256
256
  shadowCoord .z -= light .shadowBias;
257
257
  shadowCoord .xyz /= shadowCoord .w;
258
258
 
259
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
260
+ return 0.0;
261
+
259
262
  float dx0 = - texelSize .x;
260
263
  float dy0 = - texelSize .y;
261
264
  float dx1 = + texelSize .x;
@@ -283,6 +286,9 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
283
286
  shadowCoord .z -= light .shadowBias;
284
287
  shadowCoord .xyz /= shadowCoord .w;
285
288
 
289
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
290
+ return 0.0;
291
+
286
292
  float dx0 = - texelSize.x;
287
293
  float dy0 = - texelSize.y;
288
294
  float dx1 = + texelSize.x;
@@ -304,11 +310,14 @@ getShadowIntensity (const in int index, const in x3d_LightSourceParameters light
304
310
 
305
311
  #else // no percentage-closer filtering
306
312
 
307
- vec4 shadowCoord = shadowMatrix * vec4 (vertex, 1.0);
313
+ vec4 shadowCoord = light .shadowMatrix * vec4 (vertex, 1.0);
308
314
 
309
- shadowCoord .z -= shadowBias;
315
+ shadowCoord .z -= light .shadowBias;
310
316
  shadowCoord .xyz /= shadowCoord .w;
311
317
 
318
+ if (any (greaterThan (abs (shadowCoord .xy - 0.5), vec2 (0.5))))
319
+ return 0.0;
320
+
312
321
  float value = texture2DCompare (index, shadowCoord .xy, shadowCoord .z);
313
322
 
314
323
  return light .shadowIntensity * value;
package/src/tests.js CHANGED
@@ -22,7 +22,6 @@ const X_ITE_TESTS = [
22
22
  { path: "Core/Statements.x3d" },
23
23
  { path: "Core/units.x3d" },
24
24
  { path: "Core/units.x3dv" },
25
- { path: "Core/VRML.wrl" },
26
25
  { component: "EnvironmentalEffects" },
27
26
  { path: "EnvironmentalEffects/BackgroundClipPlane.x3dv" },
28
27
  { path: "EnvironmentalEffects/FogCoordinate.x3d" },
@@ -198,13 +198,14 @@ X3DObjectArrayField .prototype = Object .assign (Object .create (X3DArrayField .
198
198
  },
199
199
  set: function (value)
200
200
  {
201
- const target = this [_target];
202
-
203
- target .resize (value .length, undefined, true);
201
+ const
202
+ target = this [_target],
203
+ array = target .getValue (),
204
+ newLength = value .length;
204
205
 
205
- const array = target .getValue ();
206
+ target .resize (newLength, undefined, true);
206
207
 
207
- for (let i = 0, length = value .length; i < length; ++ i)
208
+ for (let i = 0; i < newLength; ++ i)
208
209
  array [i] .set (value [i] instanceof X3DField ? value [i] .getValue () : value [i]);
209
210
  },
210
211
  setValue: function (value)
@@ -351,6 +352,10 @@ X3DObjectArrayField .prototype = Object .assign (Object .create (X3DArrayField .
351
352
  }
352
353
  }
353
354
  }
355
+ else
356
+ {
357
+ first = last;
358
+ }
354
359
 
355
360
  if (first !== last)
356
361
  target .addEvent ();
@@ -375,8 +380,12 @@ X3DObjectArrayField .prototype = Object .assign (Object .create (X3DArrayField .
375
380
  }
376
381
  }
377
382
  }
383
+ else
384
+ {
385
+ first = last;
386
+ }
378
387
 
379
- if (first !== -1)
388
+ if (first !== last)
380
389
  target .addEvent ();
381
390
 
382
391
  return first;
@@ -45,4 +45,4 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- export default "8.7.6";
48
+ export default "8.7.8";