@babylonjs/core 7.13.1 → 7.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Animations/animationGroupMask.d.ts +1 -1
- package/Animations/animationKey.d.ts +1 -1
- package/Behaviors/Meshes/handConstraintBehavior.d.ts +3 -3
- package/Cameras/Inputs/flyCameraMouseInput.d.ts +0 -1
- package/Cameras/Inputs/flyCameraMouseInput.js +0 -1
- package/Cameras/Inputs/flyCameraMouseInput.js.map +1 -1
- package/Collisions/gpuPicker.d.ts +1 -0
- package/Collisions/gpuPicker.js +1 -0
- package/Collisions/gpuPicker.js.map +1 -1
- package/Debug/debugLayer.d.ts +1 -1
- package/Decorators/nodeDecorator.d.ts +1 -1
- package/DeviceInput/InputDevices/deviceEnums.d.ts +5 -5
- package/Engines/Extensions/engine.computeShader.d.ts +1 -1
- package/Engines/WebGPU/webgpuConstants.d.ts +39 -39
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Events/deviceInputEvents.d.ts +1 -1
- package/FlowGraph/flowGraph.d.ts +1 -1
- package/FlowGraph/flowGraphConnection.d.ts +1 -1
- package/Gamepads/dualShockGamepad.d.ts +2 -2
- package/Gamepads/xboxGamepad.d.ts +2 -2
- package/Gizmos/gizmo.d.ts +2 -2
- package/Loading/sceneLoader.d.ts +1 -1
- package/Materials/GreasedLine/greasedLineMaterialInterfaces.d.ts +3 -3
- package/Materials/Node/Blocks/meshAttributeExistsBlock.d.ts +1 -1
- package/Materials/Node/Blocks/waveBlock.d.ts +1 -1
- package/Materials/Node/Enums/nodeMaterialBlockConnectionPointMode.d.ts +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.d.ts +2 -2
- package/Materials/Textures/internalTexture.d.ts +1 -1
- package/Materials/Textures/ktx2decoderTypes.d.ts +1 -1
- package/Materials/materialPluginEvent.d.ts +1 -1
- package/Materials/meshDebugPluginMaterial.d.ts +1 -1
- package/Materials/shaderLanguage.d.ts +1 -1
- package/Maths/math.axis.d.ts +2 -2
- package/Maths/math.path.d.ts +1 -1
- package/Meshes/Builders/greasedLineBuilder.d.ts +2 -2
- package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +3 -3
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.d.ts +2 -2
- package/Meshes/csg.js +12 -0
- package/Meshes/csg.js.map +1 -1
- package/Meshes/meshSimplification.d.ts +1 -1
- package/Misc/assetsManager.d.ts +1 -1
- package/Misc/asyncLock.d.ts +24 -0
- package/Misc/asyncLock.js +32 -0
- package/Misc/asyncLock.js.map +1 -0
- package/Misc/copyTextureToTexture.d.ts +1 -1
- package/Misc/iInspectable.d.ts +1 -1
- package/Misc/index.d.ts +1 -0
- package/Misc/index.js +1 -0
- package/Misc/index.js.map +1 -1
- package/Misc/timer.d.ts +1 -1
- package/Misc/virtualJoystick.d.ts +1 -1
- package/Particles/gpuParticleSystem.js +1 -0
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/pointsCloudSystem.d.ts +1 -1
- package/Particles/subEmitter.d.ts +1 -1
- package/Physics/physicsHelper.d.ts +2 -2
- package/Physics/v2/IPhysicsEnginePlugin.d.ts +8 -8
- package/Physics/v2/physicsMaterial.d.ts +1 -1
- package/PostProcesses/depthOfFieldEffect.d.ts +1 -1
- package/PostProcesses/tonemapPostProcess.d.ts +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.d.ts +1 -1
- package/XR/features/WebXRHandTracking.d.ts +2 -2
- package/XR/features/WebXRNearInteraction.d.ts +1 -1
- package/XR/webXRTypes.d.ts +2 -2
- package/package.json +1 -1
- package/scene.d.ts +1 -1
package/FlowGraph/flowGraph.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { FlowGraphSignalConnection } from "./flowGraphSignalConnection";
|
|
|
7
7
|
import type { FlowGraphDataConnection } from "./flowGraphDataConnection";
|
|
8
8
|
import type { ISerializedFlowGraph, IObjectAccessor } from "./typeDefinitions";
|
|
9
9
|
import type { IPathToObjectConverter } from "../ObjectModel/objectModelInterfaces";
|
|
10
|
-
export declare
|
|
10
|
+
export declare enum FlowGraphState {
|
|
11
11
|
/**
|
|
12
12
|
* The graph is stopped
|
|
13
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { Gamepad } from "./gamepad";
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines supported buttons for DualShock compatible gamepads
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare enum DualShockButton {
|
|
7
7
|
/** Cross */
|
|
8
8
|
Cross = 0,
|
|
9
9
|
/** Circle */
|
|
@@ -26,7 +26,7 @@ export declare const enum DualShockButton {
|
|
|
26
26
|
RightStick = 11
|
|
27
27
|
}
|
|
28
28
|
/** Defines values for DualShock DPad */
|
|
29
|
-
export declare
|
|
29
|
+
export declare enum DualShockDpad {
|
|
30
30
|
/** Up */
|
|
31
31
|
Up = 12,
|
|
32
32
|
/** Down */
|
|
@@ -3,7 +3,7 @@ import { Gamepad } from "../Gamepads/gamepad";
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines supported buttons for XBox360 compatible gamepads
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare enum Xbox360Button {
|
|
7
7
|
/** A */
|
|
8
8
|
A = 0,
|
|
9
9
|
/** B */
|
|
@@ -26,7 +26,7 @@ export declare const enum Xbox360Button {
|
|
|
26
26
|
RightStick = 11
|
|
27
27
|
}
|
|
28
28
|
/** Defines values for XBox360 DPad */
|
|
29
|
-
export declare
|
|
29
|
+
export declare enum Xbox360Dpad {
|
|
30
30
|
/** Up */
|
|
31
31
|
Up = 12,
|
|
32
32
|
/** Down */
|
package/Gizmos/gizmo.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface GizmoAxisCache {
|
|
|
32
32
|
/**
|
|
33
33
|
* Anchor options where the Gizmo can be positioned in relation to its anchored node
|
|
34
34
|
*/
|
|
35
|
-
export declare
|
|
35
|
+
export declare enum GizmoAnchorPoint {
|
|
36
36
|
/** The origin of the attached node */
|
|
37
37
|
Origin = 0,
|
|
38
38
|
/** The pivot point of the attached node*/
|
|
@@ -41,7 +41,7 @@ export declare const enum GizmoAnchorPoint {
|
|
|
41
41
|
/**
|
|
42
42
|
* Coordinates mode: Local or World. Defines how axis is aligned: either on world axis or transform local axis
|
|
43
43
|
*/
|
|
44
|
-
export declare
|
|
44
|
+
export declare enum GizmoCoordinatesMode {
|
|
45
45
|
World = 0,
|
|
46
46
|
Local = 1
|
|
47
47
|
}
|
package/Loading/sceneLoader.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ export interface ISceneLoaderPluginAsync extends ISceneLoaderPluginBase {
|
|
|
224
224
|
/**
|
|
225
225
|
* Mode that determines how to handle old animation groups before loading new ones.
|
|
226
226
|
*/
|
|
227
|
-
export declare
|
|
227
|
+
export declare enum SceneLoaderAnimationGroupLoadingMode {
|
|
228
228
|
/**
|
|
229
229
|
* Reset all old animations to initial state then dispose them.
|
|
230
230
|
*/
|
|
@@ -98,7 +98,7 @@ export interface IGreasedLineMaterial {
|
|
|
98
98
|
* Material types for GreasedLine
|
|
99
99
|
* {@link https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line#materialtype}
|
|
100
100
|
*/
|
|
101
|
-
export declare
|
|
101
|
+
export declare enum GreasedLineMeshMaterialType {
|
|
102
102
|
/**
|
|
103
103
|
* StandardMaterial
|
|
104
104
|
*/
|
|
@@ -116,7 +116,7 @@ export declare const enum GreasedLineMeshMaterialType {
|
|
|
116
116
|
* Color blending mode of the @see GreasedLineMaterial and the base material
|
|
117
117
|
* {@link https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line#colormode}
|
|
118
118
|
*/
|
|
119
|
-
export declare
|
|
119
|
+
export declare enum GreasedLineMeshColorMode {
|
|
120
120
|
/**
|
|
121
121
|
* Color blending mode SET
|
|
122
122
|
*/
|
|
@@ -135,7 +135,7 @@ export declare const enum GreasedLineMeshColorMode {
|
|
|
135
135
|
* {@link https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line#colordistributiontype}
|
|
136
136
|
*
|
|
137
137
|
*/
|
|
138
|
-
export declare
|
|
138
|
+
export declare enum GreasedLineMeshColorDistributionType {
|
|
139
139
|
/**
|
|
140
140
|
* Colors distributed between segments of the line
|
|
141
141
|
*/
|
|
@@ -2,7 +2,7 @@ import { NodeMaterialBlock } from "../nodeMaterialBlock";
|
|
|
2
2
|
import type { NodeMaterialBuildState } from "../nodeMaterialBuildState";
|
|
3
3
|
import type { NodeMaterialConnectionPoint } from "../nodeMaterialBlockConnectionPoint";
|
|
4
4
|
import type { Scene } from "../../../scene.js";
|
|
5
|
-
export declare
|
|
5
|
+
export declare enum MeshAttributeExistsBlockTypes {
|
|
6
6
|
None = 0,
|
|
7
7
|
Normal = 1,
|
|
8
8
|
Tangent = 2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Enum defining the mode of a NodeMaterialBlockConnectionPoint
|
|
3
3
|
*/
|
|
4
|
-
export declare
|
|
4
|
+
export declare enum NodeMaterialBlockConnectionPointMode {
|
|
5
5
|
/** Value is an uniform */
|
|
6
6
|
Uniform = 0,
|
|
7
7
|
/** Value is a mesh attribute */
|
|
@@ -7,7 +7,7 @@ import type { NodeMaterialBlock } from "./nodeMaterialBlock";
|
|
|
7
7
|
/**
|
|
8
8
|
* Enum used to define the compatibility state between two connection points
|
|
9
9
|
*/
|
|
10
|
-
export declare
|
|
10
|
+
export declare enum NodeMaterialConnectionPointCompatibilityStates {
|
|
11
11
|
/** Points are compatibles */
|
|
12
12
|
Compatible = 0,
|
|
13
13
|
/** Points are incompatible because of their types */
|
|
@@ -20,7 +20,7 @@ export declare const enum NodeMaterialConnectionPointCompatibilityStates {
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines the direction of a connection point
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
23
|
+
export declare enum NodeMaterialConnectionPointDirection {
|
|
24
24
|
/** Input */
|
|
25
25
|
Input = 0,
|
|
26
26
|
/** Output */
|
|
@@ -9,7 +9,7 @@ import type { SphericalPolynomial } from "../../Maths/sphericalPolynomial";
|
|
|
9
9
|
/**
|
|
10
10
|
* Defines the source of the internal texture
|
|
11
11
|
*/
|
|
12
|
-
export declare
|
|
12
|
+
export declare enum InternalTextureSource {
|
|
13
13
|
/**
|
|
14
14
|
* The source of the texture data is unknown
|
|
15
15
|
*/
|
|
@@ -15,7 +15,7 @@ export declare enum TranscodeTarget {
|
|
|
15
15
|
R8 = 9,
|
|
16
16
|
RG8 = 10
|
|
17
17
|
}
|
|
18
|
-
export declare
|
|
18
|
+
export declare enum EngineFormat {
|
|
19
19
|
COMPRESSED_RGBA_BPTC_UNORM_EXT = 36492,
|
|
20
20
|
COMPRESSED_RGBA_ASTC_4X4_KHR = 37808,
|
|
21
21
|
COMPRESSED_RGB_S3TC_DXT1_EXT = 33776,
|
|
@@ -11,7 +11,7 @@ import type { AbstractMesh } from "../Meshes/abstractMesh.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Supported visualizations of MeshDebugPluginMaterial
|
|
13
13
|
*/
|
|
14
|
-
export declare
|
|
14
|
+
export declare enum MeshDebugMode {
|
|
15
15
|
/**
|
|
16
16
|
* Material without any mesh debug visualization
|
|
17
17
|
*/
|
package/Maths/math.axis.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Vector3 } from "./math.vector";
|
|
2
2
|
/** Defines supported spaces */
|
|
3
|
-
export declare
|
|
3
|
+
export declare enum Space {
|
|
4
4
|
/** Local (object) space */
|
|
5
5
|
LOCAL = 0,
|
|
6
6
|
/** World space */
|
|
@@ -20,7 +20,7 @@ export declare class Axis {
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines cartesian components.
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
23
|
+
export declare enum Coordinate {
|
|
24
24
|
/** X axis */
|
|
25
25
|
X = 0,
|
|
26
26
|
/** Y axis */
|
package/Maths/math.path.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { GreasedLineMaterialOptions } from "../../Materials/GreasedLine/gre
|
|
|
12
12
|
* How are the colors distributed along the color table
|
|
13
13
|
* {@link https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line#colors-and-colordistribution}
|
|
14
14
|
*/
|
|
15
|
-
export declare
|
|
15
|
+
export declare enum GreasedLineMeshColorDistribution {
|
|
16
16
|
/**
|
|
17
17
|
* Do no modify the color table
|
|
18
18
|
*/
|
|
@@ -42,7 +42,7 @@ export declare const enum GreasedLineMeshColorDistribution {
|
|
|
42
42
|
* How are the widths distributed along the width table
|
|
43
43
|
* {@link https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/greased_line#widths-and-widthdistribution}
|
|
44
44
|
*/
|
|
45
|
-
export declare
|
|
45
|
+
export declare enum GreasedLineMeshWidthDistribution {
|
|
46
46
|
/**
|
|
47
47
|
* Do no modify the width table
|
|
48
48
|
*/
|
|
@@ -10,7 +10,7 @@ import type { FloatArray, IndicesArray } from "../../types";
|
|
|
10
10
|
* In POINTS_MODE_POINTS every array of points will become the center (backbone) of the ribbon. The ribbon will be expanded by `width / 2` to `+direction` and `-direction` as well.
|
|
11
11
|
* In POINTS_MODE_PATHS every array of points specifies an edge. These will be used to build one ribbon.
|
|
12
12
|
*/
|
|
13
|
-
export declare
|
|
13
|
+
export declare enum GreasedLineRibbonPointsMode {
|
|
14
14
|
POINTS_MODE_POINTS = 0,
|
|
15
15
|
POINTS_MODE_PATHS = 1
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ export declare const enum GreasedLineRibbonPointsMode {
|
|
|
19
19
|
* FACES_MODE_SINGLE_SIDED_NO_BACKFACE_CULLING single sided without back face culling. Sets backFaceCulling = false on the material so it affects all line ribbons added to the line ribbon instance.
|
|
20
20
|
* FACES_MODE_DOUBLE_SIDED extra back faces are created. This doubles the amount of faces of the mesh.
|
|
21
21
|
*/
|
|
22
|
-
export declare
|
|
22
|
+
export declare enum GreasedLineRibbonFacesMode {
|
|
23
23
|
FACES_MODE_SINGLE_SIDED = 0,
|
|
24
24
|
FACES_MODE_SINGLE_SIDED_NO_BACKFACE_CULLING = 1,
|
|
25
25
|
FACES_MODE_DOUBLE_SIDED = 2
|
|
@@ -32,7 +32,7 @@ export declare const enum GreasedLineRibbonFacesMode {
|
|
|
32
32
|
* AUTO_DIRECTIONS_FACE_TO in this mode the direction (slope) will be calculated for each line segment according to the direction vector between each point of the line segments and a direction (face-to) vector specified in direction. The resulting line will face to the direction of this face-to vector.
|
|
33
33
|
* AUTO_DIRECTIONS_NONE you have to set the direction (slope) manually. Recommended.
|
|
34
34
|
*/
|
|
35
|
-
export declare
|
|
35
|
+
export declare enum GreasedLineRibbonAutoDirectionMode {
|
|
36
36
|
AUTO_DIRECTIONS_FROM_FIRST_SEGMENT = 0,
|
|
37
37
|
AUTO_DIRECTIONS_FROM_ALL_SEGMENTS = 1,
|
|
38
38
|
AUTO_DIRECTIONS_ENHANCED = 2,
|
|
@@ -6,7 +6,7 @@ import type { NodeGeometryBuildState } from "./nodeGeometryBuildState";
|
|
|
6
6
|
/**
|
|
7
7
|
* Enum used to define the compatibility state between two connection points
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare enum NodeGeometryConnectionPointCompatibilityStates {
|
|
10
10
|
/** Points are compatibles */
|
|
11
11
|
Compatible = 0,
|
|
12
12
|
/** Points are incompatible because of their types */
|
|
@@ -17,7 +17,7 @@ export declare const enum NodeGeometryConnectionPointCompatibilityStates {
|
|
|
17
17
|
/**
|
|
18
18
|
* Defines the direction of a connection point
|
|
19
19
|
*/
|
|
20
|
-
export declare
|
|
20
|
+
export declare enum NodeGeometryConnectionPointDirection {
|
|
21
21
|
/** Input */
|
|
22
22
|
Input = 0,
|
|
23
23
|
/** Output */
|
package/Meshes/csg.js
CHANGED
|
@@ -456,6 +456,18 @@ export class CSG {
|
|
|
456
456
|
throw "BABYLON.CSG: Wrong Mesh type, must be BABYLON.Mesh";
|
|
457
457
|
}
|
|
458
458
|
const indices = mesh.getIndices(), positions = mesh.getVerticesData(VertexBuffer.PositionKind), normals = mesh.getVerticesData(VertexBuffer.NormalKind), uvs = mesh.getVerticesData(VertexBuffer.UVKind), vertColors = mesh.getVerticesData(VertexBuffer.ColorKind);
|
|
459
|
+
if (indices === null) {
|
|
460
|
+
// eslint-disable-next-line no-throw-literal
|
|
461
|
+
throw "BABYLON.CSG: Mesh has no indices";
|
|
462
|
+
}
|
|
463
|
+
if (positions === null) {
|
|
464
|
+
// eslint-disable-next-line no-throw-literal
|
|
465
|
+
throw "BABYLON.CSG: Mesh has no positions";
|
|
466
|
+
}
|
|
467
|
+
if (normals === null) {
|
|
468
|
+
// eslint-disable-next-line no-throw-literal
|
|
469
|
+
throw "BABYLON.CSG: Mesh has no normals";
|
|
470
|
+
}
|
|
459
471
|
const subMeshes = mesh.subMeshes;
|
|
460
472
|
for (let sm = 0, sml = subMeshes.length; sm < sml; sm++) {
|
|
461
473
|
for (let i = subMeshes[sm].indexStart, il = subMeshes[sm].indexCount + subMeshes[sm].indexStart; i < il; i += 3) {
|