@babylonjs/core 7.8.2 → 7.10.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/Behaviors/Cameras/framingBehavior.d.ts +1 -1
- package/Behaviors/Cameras/framingBehavior.js +1 -1
- package/Behaviors/Cameras/framingBehavior.js.map +1 -1
- package/Behaviors/Meshes/baseSixDofDragBehavior.d.ts +5 -5
- package/Behaviors/Meshes/baseSixDofDragBehavior.js +4 -4
- package/Behaviors/Meshes/baseSixDofDragBehavior.js.map +1 -1
- package/Cameras/touchCamera.js +4 -2
- package/Cameras/touchCamera.js.map +1 -1
- package/Collisions/gpuPicker.d.ts +38 -0
- package/Collisions/gpuPicker.js +256 -0
- package/Collisions/gpuPicker.js.map +1 -0
- package/Collisions/index.d.ts +1 -0
- package/Collisions/index.js +1 -0
- package/Collisions/index.js.map +1 -1
- package/Debug/physicsViewer.d.ts +4 -2
- package/Debug/physicsViewer.js +16 -4
- package/Debug/physicsViewer.js.map +1 -1
- package/Engines/Extensions/engine.views.d.ts +1 -0
- package/Engines/Extensions/engine.views.js +3 -0
- package/Engines/Extensions/engine.views.js.map +1 -0
- package/Engines/abstractEngine.js +3 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/thinEngine.js +8 -7
- package/Engines/thinEngine.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.d.ts +6 -5
- package/Gizmos/boundingBoxGizmo.js +5 -5
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Gizmos/lightGizmo.js +1 -2
- package/Gizmos/lightGizmo.js.map +1 -1
- package/Helpers/environmentHelper.js +2 -0
- package/Helpers/environmentHelper.js.map +1 -1
- package/LensFlares/lensFlareSystem.js +2 -2
- package/LensFlares/lensFlareSystem.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +2 -2
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +2 -2
- package/Materials/Node/nodeMaterial.js +6 -6
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js +20 -8
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/material.d.ts +1 -1
- package/Materials/material.js.map +1 -1
- package/Materials/pushMaterial.d.ts +1 -1
- package/Materials/pushMaterial.js.map +1 -1
- package/Materials/shaderMaterial.d.ts +6 -1
- package/Materials/shaderMaterial.js +8 -1
- package/Materials/shaderMaterial.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +0 -2
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Meshes/Node/Blocks/mergeGeometryBlock.js +15 -11
- package/Meshes/Node/Blocks/mergeGeometryBlock.js.map +1 -1
- package/Meshes/abstractMesh.d.ts +6 -16
- package/Meshes/abstractMesh.js +5 -21
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/mesh.vertexData.js +19 -1
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/trailMesh.d.ts +40 -1
- package/Meshes/trailMesh.js +50 -21
- package/Meshes/trailMesh.js.map +1 -1
- package/Meshes/transformNode.d.ts +14 -0
- package/Meshes/transformNode.js +20 -0
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/dumpTools.js +3 -2
- package/Misc/dumpTools.js.map +1 -1
- package/Particles/EmitterTypes/coneParticleEmitter.d.ts +60 -0
- package/Particles/EmitterTypes/coneParticleEmitter.js +88 -0
- package/Particles/EmitterTypes/coneParticleEmitter.js.map +1 -1
- package/Particles/IParticleSystem.d.ts +4 -2
- package/Particles/IParticleSystem.js.map +1 -1
- package/Particles/baseParticleSystem.d.ts +2 -1
- package/Particles/baseParticleSystem.js +3 -0
- package/Particles/baseParticleSystem.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +4 -2
- package/Particles/gpuParticleSystem.js +9 -3
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particleSystem.d.ts +2 -1
- package/Particles/particleSystem.functions.d.ts +2 -1
- package/Particles/particleSystem.functions.js +4 -1
- package/Particles/particleSystem.functions.js.map +1 -1
- package/Particles/particleSystem.js +10 -2
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/thinParticleSystem.d.ts +2 -1
- package/Particles/thinParticleSystem.js +3 -2
- package/Particles/thinParticleSystem.js.map +1 -1
- package/Physics/v2/IPhysicsEnginePlugin.d.ts +3 -0
- package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
- package/Physics/v2/Plugins/havokPlugin.d.ts +14 -0
- package/Physics/v2/Plugins/havokPlugin.js +42 -18
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/Physics/v2/physicsEngine.d.ts +14 -0
- package/Physics/v2/physicsEngine.js +20 -0
- package/Physics/v2/physicsEngine.js.map +1 -1
- package/Rendering/edgesRenderer.js +2 -1
- package/Rendering/edgesRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/lineUboDeclaration.d.ts +7 -0
- package/Shaders/ShadersInclude/lineUboDeclaration.js +14 -0
- package/Shaders/ShadersInclude/lineUboDeclaration.js.map +1 -0
- package/Shaders/ShadersInclude/lineVertexDeclaration.d.ts +5 -0
- package/Shaders/ShadersInclude/lineVertexDeclaration.js +11 -0
- package/Shaders/ShadersInclude/lineVertexDeclaration.js.map +1 -0
- package/Shaders/gpuUpdateParticles.vertex.js +12 -2
- package/Shaders/gpuUpdateParticles.vertex.js.map +1 -1
- package/Shaders/line.vertex.d.ts +2 -0
- package/Shaders/line.vertex.js +5 -2
- package/Shaders/line.vertex.js.map +1 -1
- package/ShadersWGSL/gpuUpdateParticles.compute.js +11 -1
- package/ShadersWGSL/gpuUpdateParticles.compute.js.map +1 -1
- package/XR/features/WebXRControllerMovement.d.ts +14 -1
- package/XR/features/WebXRControllerMovement.js +21 -3
- package/XR/features/WebXRControllerMovement.js.map +1 -1
- package/XR/webXRInputSource.d.ts +1 -1
- package/XR/webXRInputSource.js +3 -3
- package/XR/webXRInputSource.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { NodeMaterialBlock } from "./nodeMaterialBlock";
|
|
2
2
|
import { PushMaterial } from "../pushMaterial";
|
|
3
3
|
import type { Scene } from "../../scene";
|
|
4
|
-
import { AbstractMesh } from "../../Meshes/abstractMesh";
|
|
4
|
+
import type { AbstractMesh } from "../../Meshes/abstractMesh";
|
|
5
5
|
import { Matrix } from "../../Maths/math.vector";
|
|
6
6
|
import { Color4 } from "../../Maths/math.color";
|
|
7
|
-
import
|
|
7
|
+
import { Mesh } from "../../Meshes/mesh";
|
|
8
8
|
import { Effect } from "../effect";
|
|
9
9
|
import type { BaseTexture } from "../../Materials/Textures/baseTexture";
|
|
10
10
|
import { Observable } from "../../Misc/observable";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate } from "../../tslib.es6.js";
|
|
2
2
|
import { PushMaterial } from "../pushMaterial.js";
|
|
3
|
-
import { AbstractMesh } from "../../Meshes/abstractMesh.js";
|
|
4
3
|
import { Matrix, Vector2 } from "../../Maths/math.vector.js";
|
|
5
4
|
import { Color3, Color4 } from "../../Maths/math.color.js";
|
|
5
|
+
import { Mesh } from "../../Meshes/mesh.js";
|
|
6
6
|
import { NodeMaterialBuildState } from "./nodeMaterialBuildState.js";
|
|
7
7
|
import { Effect } from "../effect.js";
|
|
8
8
|
import { Observable } from "../../Misc/observable.js";
|
|
@@ -828,7 +828,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
828
828
|
_createEffectForPostProcess(postProcess, camera, options = 1, samplingMode = 1, engine, reusable, textureType = 0, textureFormat = 5) {
|
|
829
829
|
let tempName = this.name + this._buildId;
|
|
830
830
|
const defines = new NodeMaterialDefines();
|
|
831
|
-
const dummyMesh = new
|
|
831
|
+
const dummyMesh = new Mesh(tempName + "PostProcess", this.getScene());
|
|
832
832
|
let buildId = this._buildId;
|
|
833
833
|
this._processDefines(dummyMesh, defines);
|
|
834
834
|
Effect.RegisterShader(tempName, this._fragmentCompilationState._builtCompilationString, this._vertexCompilationState._builtCompilationString);
|
|
@@ -869,7 +869,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
869
869
|
}
|
|
870
870
|
let tempName = this.name + this._buildId;
|
|
871
871
|
const proceduralTexture = new ProceduralTexture(tempName, size, null, scene);
|
|
872
|
-
const dummyMesh = new
|
|
872
|
+
const dummyMesh = new Mesh(tempName + "Procedural", this.getScene());
|
|
873
873
|
dummyMesh.reservedDataStore = {
|
|
874
874
|
hidden: true,
|
|
875
875
|
};
|
|
@@ -914,7 +914,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
914
914
|
if (!dummyMesh) {
|
|
915
915
|
dummyMesh = this.getScene().getMeshByName(this.name + "Particle");
|
|
916
916
|
if (!dummyMesh) {
|
|
917
|
-
dummyMesh = new
|
|
917
|
+
dummyMesh = new Mesh(this.name + "Particle", this.getScene());
|
|
918
918
|
dummyMesh.reservedDataStore = {
|
|
919
919
|
hidden: true,
|
|
920
920
|
};
|
|
@@ -926,7 +926,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
926
926
|
if (!effect) {
|
|
927
927
|
const result = this._processDefines(dummyMesh, defines);
|
|
928
928
|
Effect.RegisterShader(tempName, this._fragmentCompilationState._builtCompilationString);
|
|
929
|
-
particleSystem.fillDefines(particleSystemDefines, blendMode);
|
|
929
|
+
particleSystem.fillDefines(particleSystemDefines, blendMode, false);
|
|
930
930
|
join = particleSystemDefines.join("\n");
|
|
931
931
|
effect = this.getScene()
|
|
932
932
|
.getEngine()
|
|
@@ -941,7 +941,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
941
941
|
buildId = this._buildId;
|
|
942
942
|
}
|
|
943
943
|
particleSystemDefines.length = 0;
|
|
944
|
-
particleSystem.fillDefines(particleSystemDefines, blendMode);
|
|
944
|
+
particleSystem.fillDefines(particleSystemDefines, blendMode, false);
|
|
945
945
|
const particleSystemDefinesJoinedCurrent = particleSystemDefines.join("\n");
|
|
946
946
|
if (particleSystemDefinesJoinedCurrent !== join) {
|
|
947
947
|
defines.markAllAsDirty();
|