x_ite 8.6.12 → 8.6.14
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/LICENSE.md +4 -4
- package/dist/assets/components/Annotation.js +37 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +45 -21
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +39 -28
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +37 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +37 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +55 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +84 -40
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +42 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +18 -10
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +47 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +84 -28
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +70 -30
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +42 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +93 -37
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -31
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +33 -25
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +22 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +64 -32
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +80 -28
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +13 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1697 -1080
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/components/Core/WorldInfo.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
- package/docs/_posts/components/Geometry3D/Box.md +1 -1
- package/docs/_posts/components/Geometry3D/Cone.md +1 -1
- package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
- package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
- package/docs/_posts/components/Grouping/Group.md +1 -1
- package/docs/_posts/components/Grouping/Switch.md +1 -1
- package/docs/_posts/components/Grouping/Transform.md +1 -1
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
- package/docs/_posts/components/Lighting/PointLight.md +1 -1
- package/docs/_posts/components/Lighting/SpotLight.md +1 -1
- package/docs/_posts/components/Navigation/Billboard.md +1 -1
- package/docs/_posts/components/Navigation/Collision.md +1 -1
- package/docs/_posts/components/Navigation/LOD.md +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
- package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
- package/docs/_posts/components/Networking/Anchor.md +1 -1
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +1 -1
- package/docs/_posts/components/Rendering/Color.md +1 -1
- package/docs/_posts/components/Rendering/Coordinate.md +1 -1
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/Normal.md +1 -1
- package/docs/_posts/components/Rendering/PointSet.md +1 -1
- package/docs/_posts/components/Scripting/Script.md +1 -1
- package/docs/_posts/components/Shape/Appearance.md +1 -1
- package/docs/_posts/components/Shape/Material.md +1 -9
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -8
- package/docs/_posts/components/Shape/Shape.md +1 -1
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -8
- package/docs/_posts/components/Sound/AudioClip.md +1 -1
- package/docs/_posts/components/Sound/Sound.md +1 -1
- package/docs/_posts/components/Text/FontStyle.md +1 -1
- package/docs/_posts/components/Text/Text.md +1 -1
- package/docs/_posts/components/Texturing/ImageTexture.md +1 -5
- package/docs/_posts/components/Texturing/MovieTexture.md +1 -5
- package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
- package/docs/_posts/components/Texturing/TextureCoordinate.md +1 -1
- package/docs/_posts/components/Texturing/TextureTransform.md +1 -1
- package/docs/_posts/components/Time/TimeSensor.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +1 -1
- package/package.json +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +3 -3
- package/src/standard/Math/Numbers/Vector4.js +1 -0
- package/src/tests.js +2 -0
- package/src/x_ite/Base/X3DBaseNode.js +58 -53
- package/src/x_ite/Browser/Core/BrowserOptions.js +2 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -6
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +9 -15
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -3
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -2
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +10 -12
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +40 -21
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +19 -19
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +4 -0
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +4 -0
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/IconAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/TextAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/URLAnnotation.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADFace.js +12 -8
- package/src/x_ite/Components/CADGeometry/CADLayer.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADPart.js +4 -0
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +4 -0
- package/src/x_ite/Components/CADGeometry/QuadSet.js +4 -0
- package/src/x_ite/Components/Core/MetadataBoolean.js +8 -4
- package/src/x_ite/Components/Core/MetadataDouble.js +8 -4
- package/src/x_ite/Components/Core/MetadataFloat.js +8 -4
- package/src/x_ite/Components/Core/MetadataInteger.js +8 -4
- package/src/x_ite/Components/Core/MetadataSet.js +8 -4
- package/src/x_ite/Components/Core/MetadataString.js +8 -4
- package/src/x_ite/Components/Core/WorldInfo.js +4 -0
- package/src/x_ite/Components/Core/X3DNode.js +17 -16
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +11 -14
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +4 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +4 -0
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +6 -2
- package/src/x_ite/Components/DIS/DISEntityManager.js +4 -0
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +4 -0
- package/src/x_ite/Components/DIS/EspduTransform.js +4 -0
- package/src/x_ite/Components/DIS/ReceiverPdu.js +4 -0
- package/src/x_ite/Components/DIS/SignalPdu.js +4 -0
- package/src/x_ite/Components/DIS/TransmitterPdu.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +6 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +2 -2
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +4 -0
- package/src/x_ite/Components/Followers/ColorChaser.js +4 -0
- package/src/x_ite/Components/Followers/ColorDamper.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateChaser.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateDamper.js +4 -0
- package/src/x_ite/Components/Followers/OrientationChaser.js +4 -0
- package/src/x_ite/Components/Followers/OrientationDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/ScalarChaser.js +4 -0
- package/src/x_ite/Components/Followers/ScalarDamper.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +2 -2
- package/src/x_ite/Components/Geometry2D/Arc2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +4 -0
- package/src/x_ite/Components/Geometry3D/Box.js +4 -0
- package/src/x_ite/Components/Geometry3D/Cone.js +5 -1
- package/src/x_ite/Components/Geometry3D/Cylinder.js +5 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +14 -10
- package/src/x_ite/Components/Geometry3D/Extrusion.js +4 -0
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +7 -3
- package/src/x_ite/Components/Geometry3D/Sphere.js +5 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +11 -7
- package/src/x_ite/Components/Geospatial/GeoLOD.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoLocation.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTransform.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +4 -0
- package/src/x_ite/Components/Grouping/Group.js +4 -0
- package/src/x_ite/Components/Grouping/StaticGroup.js +4 -0
- package/src/x_ite/Components/Grouping/Switch.js +11 -7
- package/src/x_ite/Components/Grouping/Transform.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimJoint.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimMotion.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSegment.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSite.js +4 -0
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +4 -0
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +2 -2
- package/src/x_ite/Components/Layering/Layer.js +4 -0
- package/src/x_ite/Components/Layering/LayerSet.js +4 -0
- package/src/x_ite/Components/Layering/Viewport.js +4 -0
- package/src/x_ite/Components/Layering/X3DLayerNode.js +40 -49
- package/src/x_ite/Components/Layout/Layout.js +4 -0
- package/src/x_ite/Components/Layout/LayoutGroup.js +4 -0
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -0
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +4 -0
- package/src/x_ite/Components/Layout/ScreenGroup.js +4 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -0
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +4 -0
- package/src/x_ite/Components/Lighting/PointLight.js +4 -0
- package/src/x_ite/Components/Lighting/SpotLight.js +7 -9
- package/src/x_ite/Components/NURBS/Contour2D.js +4 -0
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +4 -0
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSet.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +4 -0
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -4
- package/src/x_ite/Components/Navigation/Billboard.js +4 -0
- package/src/x_ite/Components/Navigation/Collision.js +8 -4
- package/src/x_ite/Components/Navigation/LOD.js +11 -7
- package/src/x_ite/Components/Navigation/NavigationInfo.js +4 -0
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/Viewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +4 -0
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +8 -0
- package/src/x_ite/Components/Networking/Anchor.js +4 -0
- package/src/x_ite/Components/Networking/Inline.js +6 -2
- package/src/x_ite/Components/Networking/LoadSensor.js +42 -29
- package/src/x_ite/Components/Networking/X3DUrlObject.js +2 -2
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +12 -8
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +4 -0
- package/src/x_ite/Components/Picking/LinePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PickableGroup.js +4 -0
- package/src/x_ite/Components/Picking/PointPickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/VolumePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +4 -4
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +28 -19
- package/src/x_ite/Components/Rendering/ClipPlane.js +4 -0
- package/src/x_ite/Components/Rendering/Color.js +4 -0
- package/src/x_ite/Components/Rendering/ColorRGBA.js +4 -0
- package/src/x_ite/Components/Rendering/Coordinate.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +15 -11
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/LineSet.js +16 -12
- package/src/x_ite/Components/Rendering/Normal.js +4 -0
- package/src/x_ite/Components/Rendering/PointSet.js +15 -11
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -14
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -4
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +7 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +6 -2
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +4 -0
- package/src/x_ite/Components/Scripting/Script.js +7 -3
- package/src/x_ite/Components/Shaders/ComposedShader.js +11 -9
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/PackagedShader.js +4 -0
- package/src/x_ite/Components/Shaders/ProgramShader.js +4 -0
- package/src/x_ite/Components/Shaders/ShaderPart.js +4 -2
- package/src/x_ite/Components/Shaders/ShaderProgram.js +4 -0
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -3
- package/src/x_ite/Components/Shape/AcousticProperties.js +4 -0
- package/src/x_ite/Components/Shape/Appearance.js +8 -4
- package/src/x_ite/Components/Shape/FillProperties.js +4 -0
- package/src/x_ite/Components/Shape/LineProperties.js +4 -0
- package/src/x_ite/Components/Shape/Material.js +5 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +5 -2
- package/src/x_ite/Components/Shape/PointProperties.js +4 -0
- package/src/x_ite/Components/Shape/Shape.js +4 -0
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +4 -0
- package/src/x_ite/Components/Shape/UnlitMaterial.js +5 -2
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +5 -7
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +4 -0
- package/src/x_ite/Components/Sound/AudioClip.js +6 -2
- package/src/x_ite/Components/Sound/AudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +4 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +4 -0
- package/src/x_ite/Components/Sound/Convolver.js +4 -0
- package/src/x_ite/Components/Sound/Delay.js +4 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +4 -0
- package/src/x_ite/Components/Sound/Gain.js +4 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +4 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +4 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +4 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +4 -0
- package/src/x_ite/Components/Sound/Sound.js +6 -2
- package/src/x_ite/Components/Sound/SpatialSound.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +4 -0
- package/src/x_ite/Components/Text/FontStyle.js +4 -0
- package/src/x_ite/Components/Text/Text.js +5 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -0
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +4 -0
- package/src/x_ite/Components/Texturing/ImageTexture.js +13 -13
- package/src/x_ite/Components/Texturing/MovieTexture.js +10 -7
- package/src/x_ite/Components/Texturing/MultiTexture.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing/PixelTexture.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +4 -0
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -0
- package/src/x_ite/Components/Texturing/TextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +6 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +4 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +6 -6
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +8 -8
- package/src/x_ite/Components/X_ITE/BlendMode.js +4 -0
- package/src/x_ite/Execution/BindableList.js +16 -19
- package/src/x_ite/Execution/X3DExecutionContext.js +33 -11
- package/src/x_ite/Execution/X3DScene.js +4 -0
- package/src/x_ite/Fields/ArrayFields.js +42 -22
- package/src/x_ite/Fields/SFNode.js +3 -6
- package/src/x_ite/Fields/SFNodeCache.js +34 -19
- package/src/x_ite/InputOutput/FileLoader.js +22 -14
- package/src/x_ite/Parser/GLTF2Parser.js +72 -51
- package/src/x_ite/Parser/VRMLParser.js +66 -34
- package/src/x_ite/Parser/X3DParser.js +9 -36
- package/src/x_ite/Parser/XMLParser.js +8 -8
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
|
@@ -88,6 +88,10 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
88
88
|
{
|
|
89
89
|
return "children";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["3.2", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
initialize: function ()
|
|
92
96
|
{
|
|
93
97
|
X3DNBodyCollidableNode .prototype .initialize .call (this);
|
|
@@ -100,7 +104,7 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
100
104
|
getBBox: function (bbox, shadows)
|
|
101
105
|
{
|
|
102
106
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
103
|
-
return this .visibleNode?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
107
|
+
return this .visibleNode ?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
104
108
|
|
|
105
109
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
106
110
|
},
|
|
@@ -150,7 +154,7 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
150
154
|
},
|
|
151
155
|
set_cameraObject__: function ()
|
|
152
156
|
{
|
|
153
|
-
this .setCameraObject (!!this .visibleNode?.isCameraObject ());
|
|
157
|
+
this .setCameraObject (!!this .visibleNode ?.isCameraObject ());
|
|
154
158
|
},
|
|
155
159
|
set_visible__: function ()
|
|
156
160
|
{
|
|
@@ -191,7 +195,7 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
191
195
|
modelViewMatrix .push ();
|
|
192
196
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
193
197
|
|
|
194
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
198
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
195
199
|
|
|
196
200
|
modelViewMatrix .pop ();
|
|
197
201
|
return;
|
|
@@ -207,7 +211,7 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
207
211
|
modelViewMatrix .push ();
|
|
208
212
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
209
213
|
|
|
210
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
214
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
211
215
|
|
|
212
216
|
modelViewMatrix .pop ();
|
|
213
217
|
pickingHierarchy .pop ();
|
|
@@ -220,7 +224,7 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
220
224
|
modelViewMatrix .push ();
|
|
221
225
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
222
226
|
|
|
223
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
227
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
224
228
|
|
|
225
229
|
modelViewMatrix .pop ();
|
|
226
230
|
break;
|
|
@@ -232,9 +236,9 @@ CollidableOffset .prototype = Object .assign (Object .create (X3DNBodyCollidable
|
|
|
232
236
|
modelViewMatrix .push ();
|
|
233
237
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
234
238
|
|
|
235
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
239
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
236
240
|
|
|
237
|
-
this .boundedObject?.displayBBox (type, renderObject);
|
|
241
|
+
this .boundedObject ?.displayBBox (type, renderObject);
|
|
238
242
|
|
|
239
243
|
modelViewMatrix .pop ();
|
|
240
244
|
return;
|
|
@@ -95,6 +95,10 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
95
95
|
{
|
|
96
96
|
return "children";
|
|
97
97
|
},
|
|
98
|
+
getSpecificationRange: function ()
|
|
99
|
+
{
|
|
100
|
+
return ["3.2", "Infinity"];
|
|
101
|
+
},
|
|
98
102
|
initialize: function ()
|
|
99
103
|
{
|
|
100
104
|
X3DNBodyCollidableNode .prototype .initialize .call (this);
|
|
@@ -107,7 +111,7 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
107
111
|
getBBox: function (bbox, shadows)
|
|
108
112
|
{
|
|
109
113
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
110
|
-
return this .visibleNode?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
114
|
+
return this .visibleNode ?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
111
115
|
|
|
112
116
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
113
117
|
},
|
|
@@ -215,7 +219,7 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
215
219
|
},
|
|
216
220
|
set_cameraObject__: function ()
|
|
217
221
|
{
|
|
218
|
-
this .setCameraObject (!!this .visibleNode?.isCameraObject ());
|
|
222
|
+
this .setCameraObject (!!this .visibleNode ?.isCameraObject ());
|
|
219
223
|
},
|
|
220
224
|
set_visible__: function ()
|
|
221
225
|
{
|
|
@@ -421,7 +425,7 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
421
425
|
modelViewMatrix .push ();
|
|
422
426
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
423
427
|
|
|
424
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
428
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
425
429
|
|
|
426
430
|
modelViewMatrix .pop ();
|
|
427
431
|
return;
|
|
@@ -437,7 +441,7 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
437
441
|
modelViewMatrix .push ();
|
|
438
442
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
439
443
|
|
|
440
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
444
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
441
445
|
|
|
442
446
|
modelViewMatrix .pop ();
|
|
443
447
|
pickingHierarchy .pop ();
|
|
@@ -450,7 +454,7 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
450
454
|
modelViewMatrix .push ();
|
|
451
455
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
452
456
|
|
|
453
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
457
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
454
458
|
|
|
455
459
|
modelViewMatrix .pop ();
|
|
456
460
|
return;
|
|
@@ -462,9 +466,9 @@ CollidableShape .prototype = Object .assign (Object .create (X3DNBodyCollidableN
|
|
|
462
466
|
modelViewMatrix .push ();
|
|
463
467
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
464
468
|
|
|
465
|
-
this .visibleNode?.traverse (type, renderObject);
|
|
469
|
+
this .visibleNode ?.traverse (type, renderObject);
|
|
466
470
|
|
|
467
|
-
this .boundedObject?.displayBBox (type, renderObject);
|
|
471
|
+
this .boundedObject ?.displayBBox (type, renderObject);
|
|
468
472
|
|
|
469
473
|
modelViewMatrix .pop ();
|
|
470
474
|
return;
|
|
@@ -96,6 +96,10 @@ CollisionCollection .prototype = Object .assign (Object .create (X3DChildNode .p
|
|
|
96
96
|
{
|
|
97
97
|
return "collider";
|
|
98
98
|
},
|
|
99
|
+
getSpecificationRange: function ()
|
|
100
|
+
{
|
|
101
|
+
return ["3.2", "Infinity"];
|
|
102
|
+
},
|
|
99
103
|
initialize: function ()
|
|
100
104
|
{
|
|
101
105
|
X3DChildNode .prototype .initialize .call (this);
|
|
@@ -86,11 +86,15 @@ CollisionSensor .prototype = Object .assign (Object .create (X3DSensorNode .prot
|
|
|
86
86
|
{
|
|
87
87
|
return "children";
|
|
88
88
|
},
|
|
89
|
+
getSpecificationRange: function ()
|
|
90
|
+
{
|
|
91
|
+
return ["3.2", "Infinity"];
|
|
92
|
+
},
|
|
89
93
|
initialize: function ()
|
|
90
94
|
{
|
|
91
95
|
X3DSensorNode .prototype .initialize .call (this);
|
|
92
96
|
|
|
93
|
-
this .
|
|
97
|
+
this .getLive () .addInterest ("set_live__", this);
|
|
94
98
|
|
|
95
99
|
this ._collider .addInterest ("set_collider__", this);
|
|
96
100
|
|
|
@@ -98,7 +102,7 @@ CollisionSensor .prototype = Object .assign (Object .create (X3DSensorNode .prot
|
|
|
98
102
|
},
|
|
99
103
|
set_live__: function ()
|
|
100
104
|
{
|
|
101
|
-
if (this .
|
|
105
|
+
if (this .getLive () .getValue () && this ._enabled .getValue () && this .colliderNode)
|
|
102
106
|
{
|
|
103
107
|
this .getBrowser () .sensorEvents () .addInterest ("update", this);
|
|
104
108
|
}
|
|
@@ -260,7 +264,7 @@ CollisionSensor .prototype = Object .assign (Object .create (X3DSensorNode .prot
|
|
|
260
264
|
if (contactNode)
|
|
261
265
|
return contactNode;
|
|
262
266
|
|
|
263
|
-
contactNode = this .contactCache [index] = this .getExecutionContext () .createNode ("Contact", false);
|
|
267
|
+
contactNode = this .contactCache [index] = this .getExecutionContext () .createNode ("Contact", { setup: false });
|
|
264
268
|
|
|
265
269
|
contactNode .setup ();
|
|
266
270
|
|
|
@@ -87,6 +87,10 @@ CollisionSpace .prototype = Object .assign (Object .create (X3DNBodyCollisionSpa
|
|
|
87
87
|
{
|
|
88
88
|
return "children";
|
|
89
89
|
},
|
|
90
|
+
getSpecificationRange: function ()
|
|
91
|
+
{
|
|
92
|
+
return ["3.2", "Infinity"];
|
|
93
|
+
},
|
|
90
94
|
initialize: function ()
|
|
91
95
|
{
|
|
92
96
|
X3DNBodyCollisionSpaceNode .prototype .initialize .call (this);
|
|
@@ -120,6 +120,10 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
|
|
|
120
120
|
{
|
|
121
121
|
return "joints";
|
|
122
122
|
},
|
|
123
|
+
getSpecificationRange: function ()
|
|
124
|
+
{
|
|
125
|
+
return ["3.2", "Infinity"];
|
|
126
|
+
},
|
|
123
127
|
initialize: function ()
|
|
124
128
|
{
|
|
125
129
|
X3DRigidJointNode .prototype .initialize .call (this);
|
|
@@ -128,6 +128,10 @@ RigidBody .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
128
128
|
{
|
|
129
129
|
return "bodies";
|
|
130
130
|
},
|
|
131
|
+
getSpecificationRange: function ()
|
|
132
|
+
{
|
|
133
|
+
return ["3.2", "Infinity"];
|
|
134
|
+
},
|
|
131
135
|
initialize: function ()
|
|
132
136
|
{
|
|
133
137
|
X3DNode .prototype .initialize .call (this);
|
|
@@ -119,11 +119,15 @@ RigidBodyCollection .prototype = Object .assign (Object .create (X3DChildNode .p
|
|
|
119
119
|
{
|
|
120
120
|
return "children";
|
|
121
121
|
},
|
|
122
|
+
getSpecificationRange: function ()
|
|
123
|
+
{
|
|
124
|
+
return ["3.2", "Infinity"];
|
|
125
|
+
},
|
|
122
126
|
initialize: function ()
|
|
123
127
|
{
|
|
124
128
|
X3DChildNode .prototype .initialize .call (this);
|
|
125
129
|
|
|
126
|
-
this .
|
|
130
|
+
this .getLive () .addInterest ("set_enabled__", this);
|
|
127
131
|
|
|
128
132
|
this ._enabled .addInterest ("set_enabled__", this);
|
|
129
133
|
this ._set_contacts .addInterest ("set_contacts__", this);
|
|
@@ -154,7 +158,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create (X3DChildNode .p
|
|
|
154
158
|
},
|
|
155
159
|
set_enabled__: function ()
|
|
156
160
|
{
|
|
157
|
-
if (this .
|
|
161
|
+
if (this .getLive () .getValue () && this ._enabled .getValue ())
|
|
158
162
|
this .getBrowser () .sensorEvents () .addInterest ("update", this);
|
|
159
163
|
else
|
|
160
164
|
this .getBrowser () .sensorEvents () .removeInterest ("update", this);
|
|
@@ -107,6 +107,10 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
|
|
|
107
107
|
{
|
|
108
108
|
return "joints";
|
|
109
109
|
},
|
|
110
|
+
getSpecificationRange: function ()
|
|
111
|
+
{
|
|
112
|
+
return ["3.2", "Infinity"];
|
|
113
|
+
},
|
|
110
114
|
initialize: function ()
|
|
111
115
|
{
|
|
112
116
|
X3DRigidJointNode .prototype .initialize .call (this);
|
|
@@ -100,6 +100,10 @@ SliderJoint .prototype = Object .assign (Object .create (X3DRigidJointNode .prot
|
|
|
100
100
|
{
|
|
101
101
|
return "joints";
|
|
102
102
|
},
|
|
103
|
+
getSpecificationRange: function ()
|
|
104
|
+
{
|
|
105
|
+
return ["3.2", "Infinity"];
|
|
106
|
+
},
|
|
103
107
|
initialize: function ()
|
|
104
108
|
{
|
|
105
109
|
X3DRigidJointNode .prototype .initialize .call (this);
|
|
@@ -104,6 +104,10 @@ Script .prototype = Object .assign (Object .create (X3DScriptNode .prototype),
|
|
|
104
104
|
{
|
|
105
105
|
return "children";
|
|
106
106
|
},
|
|
107
|
+
getSpecificationRange: function ()
|
|
108
|
+
{
|
|
109
|
+
return ["2.0", "Infinity"];
|
|
110
|
+
},
|
|
107
111
|
initialize: function ()
|
|
108
112
|
{
|
|
109
113
|
X3DScriptNode .prototype .initialize .call (this);
|
|
@@ -221,7 +225,7 @@ Script .prototype = Object .assign (Object .create (X3DScriptNode .prototype),
|
|
|
221
225
|
const
|
|
222
226
|
browser = this .getBrowser (),
|
|
223
227
|
executionContext = this .getExecutionContext (),
|
|
224
|
-
live = this .
|
|
228
|
+
live = this .getLive ();
|
|
225
229
|
|
|
226
230
|
function SFNode (vrmlSyntax)
|
|
227
231
|
{
|
|
@@ -229,7 +233,7 @@ Script .prototype = Object .assign (Object .create (X3DScriptNode .prototype),
|
|
|
229
233
|
scene = browser .createX3DFromString (String (vrmlSyntax)),
|
|
230
234
|
rootNodes = scene .getRootNodes ();
|
|
231
235
|
|
|
232
|
-
live .addFieldInterest (scene .
|
|
236
|
+
live .addFieldInterest (scene .getLive ());
|
|
233
237
|
|
|
234
238
|
scene .setLive (live .getValue ());
|
|
235
239
|
scene .setPrivate (executionContext .isPrivate ());
|
|
@@ -389,7 +393,7 @@ Script .prototype = Object .assign (Object .create (X3DScriptNode .prototype),
|
|
|
389
393
|
if (!this .context)
|
|
390
394
|
return;
|
|
391
395
|
|
|
392
|
-
if (this .
|
|
396
|
+
if (this .getLive () .getValue ())
|
|
393
397
|
{
|
|
394
398
|
if (!this .initialized)
|
|
395
399
|
{
|
|
@@ -90,20 +90,24 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
90
90
|
{
|
|
91
91
|
return "shaders";
|
|
92
92
|
},
|
|
93
|
+
getSpecificationRange: function ()
|
|
94
|
+
{
|
|
95
|
+
return ["3.0", "Infinity"];
|
|
96
|
+
},
|
|
93
97
|
initialize: function ()
|
|
94
98
|
{
|
|
95
99
|
X3DShaderNode .prototype .initialize .call (this);
|
|
96
100
|
X3DProgrammableShaderObject .prototype .initialize .call (this);
|
|
97
101
|
|
|
98
|
-
this .
|
|
102
|
+
this .getLive () .addInterest ("set_live__", this);
|
|
99
103
|
|
|
100
104
|
// https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/shaders_glsl.html#relinkingprograms
|
|
101
105
|
this ._activate .addInterest ("set_activate__", this);
|
|
102
106
|
|
|
103
|
-
this ._parts .addFieldInterest (this .loadSensor .
|
|
107
|
+
this ._parts .addFieldInterest (this .loadSensor ._children);
|
|
104
108
|
|
|
105
109
|
this .loadSensor ._isLoaded .addInterest ("connectLoaded", this);
|
|
106
|
-
this .loadSensor .
|
|
110
|
+
this .loadSensor ._children = this ._parts;
|
|
107
111
|
this .loadSensor .setPrivate (true);
|
|
108
112
|
this .loadSensor .setup ();
|
|
109
113
|
|
|
@@ -119,7 +123,7 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
119
123
|
},
|
|
120
124
|
addUserDefinedField: function (accessType, name, field)
|
|
121
125
|
{
|
|
122
|
-
const shaderFields = this .isInitialized () && this .
|
|
126
|
+
const shaderFields = this .isInitialized () && this .getLive () .getValue () && this .isValid ();
|
|
123
127
|
|
|
124
128
|
if (shaderFields)
|
|
125
129
|
this .removeShaderFields ();
|
|
@@ -131,7 +135,7 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
131
135
|
},
|
|
132
136
|
removeUserDefinedField: function (name)
|
|
133
137
|
{
|
|
134
|
-
const shaderFields = this .isInitialized () && this .
|
|
138
|
+
const shaderFields = this .isInitialized () && this .getLive () .getValue () && this .isValid ();
|
|
135
139
|
|
|
136
140
|
if (shaderFields)
|
|
137
141
|
this .removeShaderFields ();
|
|
@@ -151,7 +155,7 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
151
155
|
},
|
|
152
156
|
set_live__: function ()
|
|
153
157
|
{
|
|
154
|
-
if (this .
|
|
158
|
+
if (this .getLive () .getValue ())
|
|
155
159
|
{
|
|
156
160
|
if (this .isValid ())
|
|
157
161
|
this .addShaderFields ();
|
|
@@ -188,7 +192,7 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
188
192
|
{
|
|
189
193
|
const partNode = X3DCast (X3DConstants .ShaderPart, node);
|
|
190
194
|
|
|
191
|
-
if (partNode)
|
|
195
|
+
if (partNode ?.getShader ())
|
|
192
196
|
gl .attachShader (program, partNode .getShader ());
|
|
193
197
|
}
|
|
194
198
|
|
|
@@ -220,8 +224,6 @@ ComposedShader .prototype = Object .assign (Object .create (X3DShaderNode .proto
|
|
|
220
224
|
},
|
|
221
225
|
dispose: function ()
|
|
222
226
|
{
|
|
223
|
-
this .getBrowser () .getContext () .deleteProgram (this .program);
|
|
224
|
-
|
|
225
227
|
X3DProgrammableShaderObject .prototype .dispose .call (this);
|
|
226
228
|
X3DShaderNode .prototype .dispose .call (this);
|
|
227
229
|
},
|
|
@@ -80,6 +80,10 @@ FloatVertexAttribute .prototype = Object .assign (Object .create (X3DVertexAttri
|
|
|
80
80
|
{
|
|
81
81
|
return "attrib";
|
|
82
82
|
},
|
|
83
|
+
getSpecificationRange: function ()
|
|
84
|
+
{
|
|
85
|
+
return ["3.0", "Infinity"];
|
|
86
|
+
},
|
|
83
87
|
initialize: function ()
|
|
84
88
|
{
|
|
85
89
|
X3DVertexAttributeNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ Matrix3VertexAttribute .prototype = Object .assign (Object .create (X3DVertexAtt
|
|
|
79
79
|
{
|
|
80
80
|
return "attrib";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.0", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DVertexAttributeNode .prototype .initialize .call (this);
|
|
@@ -78,6 +78,10 @@ Matrix4VertexAttribute .prototype = Object .assign (Object .create (X3DVertexAtt
|
|
|
78
78
|
{
|
|
79
79
|
return "attrib";
|
|
80
80
|
},
|
|
81
|
+
getSpecificationRange: function ()
|
|
82
|
+
{
|
|
83
|
+
return ["3.0", "Infinity"];
|
|
84
|
+
},
|
|
81
85
|
initialize: function ()
|
|
82
86
|
{
|
|
83
87
|
X3DVertexAttributeNode .prototype .initialize .call (this);
|
|
@@ -104,6 +104,10 @@ ShaderPart .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
104
104
|
{
|
|
105
105
|
return "parts";
|
|
106
106
|
},
|
|
107
|
+
getSpecificationRange: function ()
|
|
108
|
+
{
|
|
109
|
+
return ["3.0", "Infinity"];
|
|
110
|
+
},
|
|
107
111
|
initialize: function ()
|
|
108
112
|
{
|
|
109
113
|
X3DNode .prototype .initialize .call (this);
|
|
@@ -215,8 +219,6 @@ ShaderPart .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
215
219
|
},
|
|
216
220
|
dispose: function ()
|
|
217
221
|
{
|
|
218
|
-
this .getBrowser () .getContext () .deleteShader (this .shader);
|
|
219
|
-
|
|
220
222
|
X3DUrlObject .prototype .dispose .call (this);
|
|
221
223
|
X3DNode .prototype .dispose .call (this);
|
|
222
224
|
},
|
|
@@ -1045,7 +1045,7 @@ X3DProgrammableShaderObject .prototype =
|
|
|
1045
1045
|
|
|
1046
1046
|
// Fog
|
|
1047
1047
|
|
|
1048
|
-
fogNode?.setShaderUniforms (gl, this);
|
|
1048
|
+
fogNode ?.setShaderUniforms (gl, this);
|
|
1049
1049
|
|
|
1050
1050
|
// Clip planes and local lights
|
|
1051
1051
|
|
|
@@ -1062,7 +1062,7 @@ X3DProgrammableShaderObject .prototype =
|
|
|
1062
1062
|
|
|
1063
1063
|
// Style Properties
|
|
1064
1064
|
|
|
1065
|
-
stylePropertiesNode?.setShaderUniforms (gl, this);
|
|
1065
|
+
stylePropertiesNode ?.setShaderUniforms (gl, this);
|
|
1066
1066
|
|
|
1067
1067
|
// Material
|
|
1068
1068
|
|
|
@@ -1070,7 +1070,7 @@ X3DProgrammableShaderObject .prototype =
|
|
|
1070
1070
|
|
|
1071
1071
|
// Texture
|
|
1072
1072
|
|
|
1073
|
-
textureNode?.setShaderUniforms (gl, this, renderObject);
|
|
1073
|
+
textureNode ?.setShaderUniforms (gl, this, renderObject);
|
|
1074
1074
|
|
|
1075
1075
|
appearanceNode .getTextureTransform () .setShaderUniforms (gl, this);
|
|
1076
1076
|
geometryContext .getTextureCoordinate () .setShaderUniforms (gl, this);
|
|
@@ -96,6 +96,10 @@ Appearance .prototype = Object .assign (Object .create (X3DAppearanceNode .proto
|
|
|
96
96
|
{
|
|
97
97
|
return "appearance";
|
|
98
98
|
},
|
|
99
|
+
getSpecificationRange: function ()
|
|
100
|
+
{
|
|
101
|
+
return ["2.0", "Infinity"];
|
|
102
|
+
},
|
|
99
103
|
initialize: function ()
|
|
100
104
|
{
|
|
101
105
|
X3DAppearanceNode .prototype .initialize .call (this);
|
|
@@ -415,10 +419,10 @@ Appearance .prototype = Object .assign (Object .create (X3DAppearanceNode .proto
|
|
|
415
419
|
switch (this .alphaMode)
|
|
416
420
|
{
|
|
417
421
|
case AlphaMode .AUTO:
|
|
418
|
-
this .setTransparent (!!(this .stylePropertiesNode [3]?.isTransparent () ||
|
|
419
|
-
this .materialNode?.isTransparent () ||
|
|
420
|
-
this .backMaterialNode?.isTransparent () ||
|
|
421
|
-
this .textureNode?.isTransparent () ||
|
|
422
|
+
this .setTransparent (!!(this .stylePropertiesNode [3] ?.isTransparent () ||
|
|
423
|
+
this .materialNode ?.isTransparent () ||
|
|
424
|
+
this .backMaterialNode ?.isTransparent () ||
|
|
425
|
+
this .textureNode ?.isTransparent () ||
|
|
422
426
|
this .blendModeNode));
|
|
423
427
|
break;
|
|
424
428
|
case AlphaMode .OPAQUE:
|
|
@@ -86,6 +86,10 @@ FillProperties .prototype = Object .assign (Object .create (X3DAppearanceChildNo
|
|
|
86
86
|
{
|
|
87
87
|
return "fillProperties";
|
|
88
88
|
},
|
|
89
|
+
getSpecificationRange: function ()
|
|
90
|
+
{
|
|
91
|
+
return ["3.0", "Infinity"];
|
|
92
|
+
},
|
|
89
93
|
initialize: function ()
|
|
90
94
|
{
|
|
91
95
|
X3DAppearanceChildNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ LineProperties .prototype = Object .assign (Object .create (X3DAppearanceChildNo
|
|
|
79
79
|
{
|
|
80
80
|
return "lineProperties";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["3.0", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DAppearanceChildNode .prototype .initialize .call (this);
|
|
@@ -82,7 +82,6 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
82
82
|
new X3DFieldDefinition (X3DConstants .inputOutput, "specularTextureMapping", new Fields .SFString ()),
|
|
83
83
|
new X3DFieldDefinition (X3DConstants .inputOutput, "specularTexture", new Fields .SFNode ()),
|
|
84
84
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveColor", new Fields .SFColor ()),
|
|
85
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveStrength", new Fields .SFFloat (1)),
|
|
86
85
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTextureMapping", new Fields .SFString ()),
|
|
87
86
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTexture", new Fields .SFNode ()),
|
|
88
87
|
new X3DFieldDefinition (X3DConstants .inputOutput, "shininess", new Fields .SFFloat (0.2)),
|
|
@@ -108,6 +107,10 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
108
107
|
{
|
|
109
108
|
return "material";
|
|
110
109
|
},
|
|
110
|
+
getSpecificationRange: function ()
|
|
111
|
+
{
|
|
112
|
+
return ["2.0", "Infinity"];
|
|
113
|
+
},
|
|
111
114
|
initialize: function ()
|
|
112
115
|
{
|
|
113
116
|
X3DOneSidedMaterialNode .prototype .initialize .call (this);
|
|
@@ -211,7 +214,7 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
211
214
|
},
|
|
212
215
|
set_transparent__: function ()
|
|
213
216
|
{
|
|
214
|
-
this .setTransparent (!!(this .getTransparency () || this .diffuseTextureNode?.isTransparent ()));
|
|
217
|
+
this .setTransparent (!!(this .getTransparency () || this .diffuseTextureNode ?.isTransparent ()));
|
|
215
218
|
},
|
|
216
219
|
getBaseTexture: function ()
|
|
217
220
|
{
|
|
@@ -71,7 +71,6 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
71
71
|
new X3DFieldDefinition (X3DConstants .inputOutput, "baseTextureMapping", new Fields .SFString ()),
|
|
72
72
|
new X3DFieldDefinition (X3DConstants .inputOutput, "baseTexture", new Fields .SFNode ()),
|
|
73
73
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveColor", new Fields .SFColor (0, 0, 0)),
|
|
74
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveStrength", new Fields .SFFloat (1)),
|
|
75
74
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTextureMapping", new Fields .SFString ()),
|
|
76
75
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTexture", new Fields .SFNode ()),
|
|
77
76
|
new X3DFieldDefinition (X3DConstants .inputOutput, "metallic", new Fields .SFFloat (1)),
|
|
@@ -98,6 +97,10 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
98
97
|
{
|
|
99
98
|
return "material";
|
|
100
99
|
},
|
|
100
|
+
getSpecificationRange: function ()
|
|
101
|
+
{
|
|
102
|
+
return ["4.0", "Infinity"];
|
|
103
|
+
},
|
|
101
104
|
initialize: function ()
|
|
102
105
|
{
|
|
103
106
|
X3DOneSidedMaterialNode .prototype .initialize .call (this);
|
|
@@ -170,7 +173,7 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
170
173
|
},
|
|
171
174
|
set_transparent__: function ()
|
|
172
175
|
{
|
|
173
|
-
this .setTransparent (!!(this .getTransparency () || this .baseTextureNode?.isTransparent ()));
|
|
176
|
+
this .setTransparent (!!(this .getTransparency () || this .baseTextureNode ?.isTransparent ()));
|
|
174
177
|
},
|
|
175
178
|
getBaseTexture: function ()
|
|
176
179
|
{
|
|
@@ -84,6 +84,10 @@ PointProperties .prototype = Object .assign (Object .create (X3DAppearanceChildN
|
|
|
84
84
|
{
|
|
85
85
|
return "pointProperties";
|
|
86
86
|
},
|
|
87
|
+
getSpecificationRange: function ()
|
|
88
|
+
{
|
|
89
|
+
return ["4.0", "Infinity"];
|
|
90
|
+
},
|
|
87
91
|
initialize: function ()
|
|
88
92
|
{
|
|
89
93
|
X3DAppearanceChildNode .prototype .initialize .call (this);
|