@onerjs/core 8.52.4 → 8.52.6
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/Cameras/arcRotateCamera.pure.d.ts +6 -0
- package/Cameras/arcRotateCamera.pure.js +13 -0
- package/Cameras/arcRotateCamera.pure.js.map +1 -1
- package/Engines/abstractEngine.pure.js +2 -2
- package/Engines/abstractEngine.pure.js.map +1 -1
- package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.pure.d.ts +3 -0
- package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.pure.js +16 -1
- package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.pure.js.map +1 -1
- package/FrameGraph/Tasks/Layers/selectionOutlineTask.d.ts +2 -1
- package/FrameGraph/Tasks/Layers/selectionOutlineTask.js +5 -2
- package/FrameGraph/Tasks/Layers/selectionOutlineTask.js.map +1 -1
- package/Layers/selectionOutlineLayer.pure.d.ts +9 -2
- package/Layers/selectionOutlineLayer.pure.js +29 -6
- package/Layers/selectionOutlineLayer.pure.js.map +1 -1
- package/Layers/thinEffectLayer.d.ts +1 -0
- package/Layers/thinEffectLayer.js +7 -4
- package/Layers/thinEffectLayer.js.map +1 -1
- package/Layers/thinSelectionOutlineLayer.d.ts +17 -3
- package/Layers/thinSelectionOutlineLayer.js +82 -17
- package/Layers/thinSelectionOutlineLayer.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.pure.d.ts +2 -1
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.pure.js +3 -2
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.pure.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.pure.d.ts +32 -2
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.pure.js +180 -22
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.pure.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.d.ts +12 -10
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js +20 -5
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js.map +1 -1
- package/Meshes/abstractMesh.pure.d.ts +5 -1
- package/Meshes/abstractMesh.pure.js +92 -2
- package/Meshes/abstractMesh.pure.js.map +1 -1
- package/Meshes/thinInstanceMesh.pure.js +143 -2
- package/Meshes/thinInstanceMesh.pure.js.map +1 -1
- package/Meshes/thinInstanceMesh.types.d.ts +2 -1
- package/Meshes/thinInstanceMesh.types.js.map +1 -1
- package/Misc/tools.pure.js +1 -1
- package/Misc/tools.pure.js.map +1 -1
- package/Rendering/IBLShadows/iblShadowsRenderPipeline.pure.js +12 -1
- package/Rendering/IBLShadows/iblShadowsRenderPipeline.pure.js.map +1 -1
- package/Rendering/geometryBufferRenderer.pure.js +8 -0
- package/Rendering/geometryBufferRenderer.pure.js.map +1 -1
- package/Rendering/objectRenderer.js +4 -2
- package/Rendering/objectRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/pbrBlockFinalLitComponents.js +1 -1
- package/Shaders/ShadersInclude/pbrBlockFinalLitComponents.js.map +1 -1
- package/Shaders/gaussianSplattingVoxel.vertex.js +1 -0
- package/Shaders/gaussianSplattingVoxel.vertex.js.map +1 -1
- package/Shaders/selectionOutline.fragment.js +16 -4
- package/Shaders/selectionOutline.fragment.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/pbrBlockFinalLitComponents.js +1 -1
- package/ShadersWGSL/ShadersInclude/pbrBlockFinalLitComponents.js.map +1 -1
- package/ShadersWGSL/gaussianSplattingVoxel.vertex.js +1 -0
- package/ShadersWGSL/gaussianSplattingVoxel.vertex.js.map +1 -1
- package/ShadersWGSL/selectionOutline.fragment.js +14 -2
- package/ShadersWGSL/selectionOutline.fragment.js.map +1 -1
- package/XR/features/WebXRBodyTracking.pure.d.ts +16 -0
- package/XR/features/WebXRBodyTracking.pure.js +167 -30
- package/XR/features/WebXRBodyTracking.pure.js.map +1 -1
- package/package.json +1 -1
|
@@ -55,6 +55,12 @@ export declare class ArcRotateCamera extends TargetCamera {
|
|
|
55
55
|
* This allows the parameter to be specified when animating the target (e.g. using FramingBehavior).
|
|
56
56
|
*/
|
|
57
57
|
overrideCloneAlphaBetaRadius: Nullable<boolean>;
|
|
58
|
+
protected _targetOffset: Vector3;
|
|
59
|
+
/**
|
|
60
|
+
* Defines the offset of the camera target;
|
|
61
|
+
*/
|
|
62
|
+
get targetOffset(): Vector3;
|
|
63
|
+
set targetOffset(offset: Vector3);
|
|
58
64
|
protected _target: Vector3;
|
|
59
65
|
protected _targetHost: Nullable<TransformNode>;
|
|
60
66
|
/**
|
|
@@ -54,6 +54,15 @@ function CheckNaN(value, fallback) {
|
|
|
54
54
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#arc-rotate-camera
|
|
55
55
|
*/
|
|
56
56
|
export class ArcRotateCamera extends TargetCamera {
|
|
57
|
+
/**
|
|
58
|
+
* Defines the offset of the camera target;
|
|
59
|
+
*/
|
|
60
|
+
get targetOffset() {
|
|
61
|
+
return this._targetOffset;
|
|
62
|
+
}
|
|
63
|
+
set targetOffset(offset) {
|
|
64
|
+
this._targetOffset = offset;
|
|
65
|
+
}
|
|
57
66
|
/**
|
|
58
67
|
* Defines the target point of the camera.
|
|
59
68
|
* The camera looks towards it from the radius distance.
|
|
@@ -589,6 +598,7 @@ export class ArcRotateCamera extends TargetCamera {
|
|
|
589
598
|
* If camera has parent,then recognize target as world target if set true.
|
|
590
599
|
*/
|
|
591
600
|
this.useWorldTargetIfParentExists = true;
|
|
601
|
+
this._targetOffset = Vector3.Zero();
|
|
592
602
|
this._inertialAlphaOffset = 0;
|
|
593
603
|
this._inertialBetaOffset = 0;
|
|
594
604
|
this._inertialRadiusOffset = 0;
|
|
@@ -796,9 +806,12 @@ export class ArcRotateCamera extends TargetCamera {
|
|
|
796
806
|
else {
|
|
797
807
|
this._target.copyFrom(pos);
|
|
798
808
|
}
|
|
809
|
+
this._target.addInPlace(this._targetOffset);
|
|
799
810
|
}
|
|
800
811
|
const lockedTargetPosition = this._getLockedTargetPosition();
|
|
801
812
|
if (lockedTargetPosition) {
|
|
813
|
+
this._target.copyFrom(lockedTargetPosition);
|
|
814
|
+
this._target.addInPlace(this._targetOffset);
|
|
802
815
|
return lockedTargetPosition;
|
|
803
816
|
}
|
|
804
817
|
return this._target;
|