@babylonjs/core 7.35.1 → 7.36.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/Engines/Extensions/engine.multiRender.d.ts +11 -0
- package/Engines/Extensions/engine.multiRender.js +71 -32
- package/Engines/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/Extensions/engine.prefilteredCubeTexture.js +3 -2
- package/Engines/Extensions/engine.prefilteredCubeTexture.js.map +1 -1
- package/Engines/Extensions/engine.renderTarget.js +1 -13
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.d.ts +2 -0
- package/Engines/WebGL/webGLRenderTargetWrapper.js +37 -7
- package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.multiRender.d.ts +11 -0
- package/Engines/WebGPU/Extensions/engine.multiRender.js +30 -11
- package/Engines/WebGPU/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTarget.js +2 -5
- package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js +3 -2
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
- package/Engines/WebGPU/webgpuHardwareTexture.d.ts +3 -1
- package/Engines/WebGPU/webgpuHardwareTexture.js +5 -4
- package/Engines/WebGPU/webgpuHardwareTexture.js.map +1 -1
- package/Engines/WebGPU/webgpuTextureManager.js +2 -2
- package/Engines/WebGPU/webgpuTextureManager.js.map +1 -1
- package/Engines/abstractEngine.d.ts +11 -0
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/renderTargetWrapper.d.ts +33 -1
- package/Engines/renderTargetWrapper.js +64 -4
- package/Engines/renderTargetWrapper.js.map +1 -1
- package/Engines/thinEngine.d.ts +13 -1
- package/Engines/thinEngine.js +115 -24
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/thinWebGPUEngine.d.ts +2 -0
- package/Engines/thinWebGPUEngine.js +7 -0
- package/Engines/thinWebGPUEngine.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +12 -3
- package/Engines/webgpuEngine.js +39 -9
- package/Engines/webgpuEngine.js.map +1 -1
- package/FrameGraph/Node/Blocks/Textures/clearBlock.d.ts +8 -0
- package/FrameGraph/Node/Blocks/Textures/clearBlock.js +22 -1
- package/FrameGraph/Node/Blocks/Textures/clearBlock.js.map +1 -1
- package/FrameGraph/Node/Blocks/inputBlock.d.ts +4 -9
- package/FrameGraph/Node/Blocks/inputBlock.js +15 -25
- package/FrameGraph/Node/Blocks/inputBlock.js.map +1 -1
- package/FrameGraph/Node/nodeRenderGraphBlockConnectionPoint.js +10 -2
- package/FrameGraph/Node/nodeRenderGraphBlockConnectionPoint.js.map +1 -1
- package/FrameGraph/Passes/renderPass.d.ts +10 -10
- package/FrameGraph/Passes/renderPass.js +10 -10
- package/FrameGraph/Passes/renderPass.js.map +1 -1
- package/FrameGraph/Tasks/PostProcesses/bloomTask.d.ts +10 -5
- package/FrameGraph/Tasks/PostProcesses/bloomTask.js +29 -14
- package/FrameGraph/Tasks/PostProcesses/bloomTask.js.map +1 -1
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldMergeTask.js +4 -0
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldMergeTask.js.map +1 -1
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.d.ts +11 -6
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js +30 -13
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js.map +1 -1
- package/FrameGraph/Tasks/PostProcesses/postProcessTask.js +4 -6
- package/FrameGraph/Tasks/PostProcesses/postProcessTask.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/cullObjectsTask.d.ts +1 -1
- package/FrameGraph/Tasks/Rendering/cullObjectsTask.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.d.ts +3 -3
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js +33 -32
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +4 -2
- package/FrameGraph/Tasks/Rendering/objectRendererTask.js +8 -12
- package/FrameGraph/Tasks/Rendering/objectRendererTask.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js +13 -18
- package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js.map +1 -1
- package/FrameGraph/Tasks/Texture/clearTextureTask.d.ts +15 -2
- package/FrameGraph/Tasks/Texture/clearTextureTask.js +17 -4
- package/FrameGraph/Tasks/Texture/clearTextureTask.js.map +1 -1
- package/FrameGraph/Tasks/Texture/copyToTextureTask.js +2 -2
- package/FrameGraph/Tasks/Texture/copyToTextureTask.js.map +1 -1
- package/FrameGraph/Tasks/Texture/generateMipMapsTask.js +3 -3
- package/FrameGraph/Tasks/Texture/generateMipMapsTask.js.map +1 -1
- package/FrameGraph/frameGraph.d.ts +11 -74
- package/FrameGraph/frameGraph.js +12 -126
- package/FrameGraph/frameGraph.js.map +1 -1
- package/FrameGraph/frameGraphRenderContext.d.ts +17 -8
- package/FrameGraph/frameGraphRenderContext.js +55 -43
- package/FrameGraph/frameGraphRenderContext.js.map +1 -1
- package/FrameGraph/frameGraphRenderTarget.d.ts +16 -0
- package/FrameGraph/frameGraphRenderTarget.js +67 -0
- package/FrameGraph/frameGraphRenderTarget.js.map +1 -0
- package/FrameGraph/frameGraphTask.d.ts +4 -3
- package/FrameGraph/frameGraphTask.js +41 -8
- package/FrameGraph/frameGraphTask.js.map +1 -1
- package/FrameGraph/frameGraphTextureManager.d.ts +130 -22
- package/FrameGraph/frameGraphTextureManager.js +312 -130
- package/FrameGraph/frameGraphTextureManager.js.map +1 -1
- package/FrameGraph/frameGraphTypes.d.ts +28 -13
- package/FrameGraph/frameGraphTypes.js.map +1 -1
- package/FrameGraph/index.d.ts +1 -0
- package/FrameGraph/index.js +1 -0
- package/FrameGraph/index.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +3 -2
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
- package/Materials/Node/Blocks/conditionalBlock.d.ts +2 -0
- package/Materials/Node/Blocks/conditionalBlock.js +13 -0
- package/Materials/Node/Blocks/conditionalBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.js +4 -1
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js +12 -4
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.js +14 -4
- package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
- package/Materials/Textures/internalTexture.d.ts +20 -0
- package/Materials/Textures/internalTexture.js +48 -0
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/multiRenderTarget.d.ts +5 -0
- package/Materials/Textures/multiRenderTarget.js.map +1 -1
- package/Materials/Textures/textureCreationOptions.d.ts +6 -6
- package/Materials/Textures/textureCreationOptions.js.map +1 -1
- package/Materials/drawWrapper.js +4 -0
- package/Materials/drawWrapper.js.map +1 -1
- package/Materials/effect.js +2 -2
- package/Materials/effect.js.map +1 -1
- package/Materials/material.d.ts +2 -2
- package/Materials/material.js +5 -5
- package/Materials/material.js.map +1 -1
- package/Maths/math.color.d.ts +16 -0
- package/Maths/math.color.js +16 -0
- package/Maths/math.color.js.map +1 -1
- package/Maths/math.vector.d.ts +32 -0
- package/Maths/math.vector.js +32 -0
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/Compression/dracoCompression.d.ts +3 -1
- package/Meshes/Compression/dracoCompression.js +5 -2
- package/Meshes/Compression/dracoCompression.js.map +1 -1
- package/Meshes/Node/Blocks/Matrices/rotationXBlock.d.ts +0 -1
- package/Meshes/Node/Blocks/Matrices/rotationXBlock.js +1 -9
- package/Meshes/Node/Blocks/Matrices/rotationXBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Matrices/rotationYBlock.d.ts +0 -1
- package/Meshes/Node/Blocks/Matrices/rotationYBlock.js +1 -9
- package/Meshes/Node/Blocks/Matrices/rotationYBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Matrices/rotationZBlock.d.ts +0 -1
- package/Meshes/Node/Blocks/Matrices/rotationZBlock.js +1 -9
- package/Meshes/Node/Blocks/Matrices/rotationZBlock.js.map +1 -1
- package/Meshes/Node/Blocks/Set/latticeBlock.js +3 -1
- package/Meshes/Node/Blocks/Set/latticeBlock.js.map +1 -1
- package/Meshes/Node/Blocks/conditionBlock.d.ts +2 -0
- package/Meshes/Node/Blocks/conditionBlock.js +15 -0
- package/Meshes/Node/Blocks/conditionBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryClampBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/geometryClampBlock.js +16 -25
- package/Meshes/Node/Blocks/geometryClampBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryLerpBlock.js +2 -2
- package/Meshes/Node/Blocks/geometryLerpBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryNLerpBlock.js +2 -2
- package/Meshes/Node/Blocks/geometryNLerpBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryReplaceColorBlock.js +2 -2
- package/Meshes/Node/Blocks/geometryReplaceColorBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryRotate2dBlock.js +2 -2
- package/Meshes/Node/Blocks/geometryRotate2dBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometrySmoothStepBlock.js +3 -3
- package/Meshes/Node/Blocks/geometrySmoothStepBlock.js.map +1 -1
- package/Meshes/Node/Blocks/geometryStepBlock.js +2 -2
- package/Meshes/Node/Blocks/geometryStepBlock.js.map +1 -1
- package/Meshes/Node/nodeGeometry.js +1 -1
- package/Meshes/Node/nodeGeometry.js.map +1 -1
- package/Meshes/Node/nodeGeometryBlock.d.ts +3 -1
- package/Meshes/Node/nodeGeometryBlock.js +2 -1
- package/Meshes/Node/nodeGeometryBlock.js.map +1 -1
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.js +10 -2
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.js.map +1 -1
- package/Meshes/abstractMesh.js +1 -1
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/lattice.material.d.ts +1 -1
- package/Meshes/lattice.material.js +3 -3
- package/Meshes/lattice.material.js.map +1 -1
- package/Misc/observable.d.ts +3 -1
- package/Misc/observable.js +7 -2
- package/Misc/observable.js.map +1 -1
- package/ShadersWGSL/glowMapGeneration.fragment.js +4 -3
- package/ShadersWGSL/glowMapGeneration.fragment.js.map +1 -1
- package/ShadersWGSL/pbr.fragment.js +4 -3
- package/ShadersWGSL/pbr.fragment.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +6 -6
- package/scene.js.map +1 -1
package/Maths/math.vector.d.ts
CHANGED
|
@@ -84,6 +84,14 @@ export declare class Vector2 implements Vector<Tuple<number, 2>, IVector2Like>,
|
|
|
84
84
|
x: number;
|
|
85
85
|
/** [0] defines the second coordinate */
|
|
86
86
|
y: number;
|
|
87
|
+
/**
|
|
88
|
+
* If the first vector is flagged with integers (as everything is 0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
89
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
90
|
+
* and henceforth it will use floating-point representation for all Vector2 instances that it creates.
|
|
91
|
+
* But the original Vector2 instances are unchanged and has a "deprecated map".
|
|
92
|
+
* If we keep using the Vector2 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
93
|
+
*/
|
|
94
|
+
static _V8PerformanceHack: DeepImmutable<Vector2>;
|
|
87
95
|
private static _ZeroReadOnly;
|
|
88
96
|
/**
|
|
89
97
|
* @see Tensor.dimension
|
|
@@ -727,6 +735,14 @@ export declare class Vector2 implements Vector<Tuple<number, 2>, IVector2Like>,
|
|
|
727
735
|
* Example Playground - Overview - https://playground.babylonjs.com/#R1F8YU
|
|
728
736
|
*/
|
|
729
737
|
export declare class Vector3 implements Vector<Tuple<number, 3>, Vector3LikeInternal>, IVector3Like {
|
|
738
|
+
/**
|
|
739
|
+
* If the first vector is flagged with integers (as everything is 0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
740
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
741
|
+
* and henceforth it will use floating-point representation for all Vector3 instances that it creates.
|
|
742
|
+
* But the original Vector3 instances are unchanged and has a "deprecated map".
|
|
743
|
+
* If we keep using the Vector3 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
744
|
+
*/
|
|
745
|
+
static _V8PerformanceHack: DeepImmutable<Vector3>;
|
|
730
746
|
private static _UpReadOnly;
|
|
731
747
|
private static _DownReadOnly;
|
|
732
748
|
private static _LeftHandedForwardReadOnly;
|
|
@@ -1856,6 +1872,14 @@ export declare class Vector4 implements Vector<Tuple<number, 4>, IVector4Like>,
|
|
|
1856
1872
|
z: number;
|
|
1857
1873
|
/** [0] w value of the vector */
|
|
1858
1874
|
w: number;
|
|
1875
|
+
/**
|
|
1876
|
+
* If the first vector is flagged with integers (as everything is 0,0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
1877
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
1878
|
+
* and henceforth it will use floating-point representation for all Vector4 instances that it creates.
|
|
1879
|
+
* But the original Vector4 instances are unchanged and has a "deprecated map".
|
|
1880
|
+
* If we keep using the Vector4 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
1881
|
+
*/
|
|
1882
|
+
static _V8PerformanceHack: DeepImmutable<Vector4>;
|
|
1859
1883
|
private static _ZeroReadOnly;
|
|
1860
1884
|
/**
|
|
1861
1885
|
* @see Tensor.dimension
|
|
@@ -2452,6 +2476,14 @@ export declare class Vector4 implements Vector<Tuple<number, 4>, IVector4Like>,
|
|
|
2452
2476
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms
|
|
2453
2477
|
*/
|
|
2454
2478
|
export declare class Quaternion implements Tensor<Tuple<number, 4>, Quaternion>, IQuaternionLike {
|
|
2479
|
+
/**
|
|
2480
|
+
* If the first quaternion is flagged with integers (as everything is 0,0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
2481
|
+
* If subsequent quaternion are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
2482
|
+
* and henceforth it will use floating-point representation for all quaternion instances that it creates.
|
|
2483
|
+
* But the original quaternion instances are unchanged and has a "deprecated map".
|
|
2484
|
+
* If we keep using the quaternion instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
2485
|
+
*/
|
|
2486
|
+
static _V8PerformanceHack: DeepImmutable<Quaternion>;
|
|
2455
2487
|
/** @internal */
|
|
2456
2488
|
_x: number;
|
|
2457
2489
|
/** @internal */
|
package/Maths/math.vector.js
CHANGED
|
@@ -933,6 +933,14 @@ export class Vector2 {
|
|
|
933
933
|
return Vector2.Distance(p, proj);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
+
/**
|
|
937
|
+
* If the first vector is flagged with integers (as everything is 0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
938
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
939
|
+
* and henceforth it will use floating-point representation for all Vector2 instances that it creates.
|
|
940
|
+
* But the original Vector2 instances are unchanged and has a "deprecated map".
|
|
941
|
+
* If we keep using the Vector2 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
942
|
+
*/
|
|
943
|
+
Vector2._V8PerformanceHack = new Vector2(0.5, 0.5);
|
|
936
944
|
Vector2._ZeroReadOnly = Vector2.Zero();
|
|
937
945
|
Vector2;
|
|
938
946
|
Object.defineProperties(Vector2.prototype, {
|
|
@@ -2851,6 +2859,14 @@ export class Vector3 {
|
|
|
2851
2859
|
return ref;
|
|
2852
2860
|
}
|
|
2853
2861
|
}
|
|
2862
|
+
/**
|
|
2863
|
+
* If the first vector is flagged with integers (as everything is 0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
2864
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
2865
|
+
* and henceforth it will use floating-point representation for all Vector3 instances that it creates.
|
|
2866
|
+
* But the original Vector3 instances are unchanged and has a "deprecated map".
|
|
2867
|
+
* If we keep using the Vector3 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
2868
|
+
*/
|
|
2869
|
+
Vector3._V8PerformanceHack = new Vector3(0.5, 0.5, 0.5);
|
|
2854
2870
|
Vector3._UpReadOnly = Vector3.Up();
|
|
2855
2871
|
Vector3._DownReadOnly = Vector3.Down();
|
|
2856
2872
|
Vector3._LeftHandedForwardReadOnly = Vector3.Forward(false);
|
|
@@ -3816,6 +3832,14 @@ export class Vector4 {
|
|
|
3816
3832
|
return left.x * right.x + left.y * right.y + left.z * right.z + left.w * right.w;
|
|
3817
3833
|
}
|
|
3818
3834
|
}
|
|
3835
|
+
/**
|
|
3836
|
+
* If the first vector is flagged with integers (as everything is 0,0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
3837
|
+
* If subsequent vectors are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
3838
|
+
* and henceforth it will use floating-point representation for all Vector4 instances that it creates.
|
|
3839
|
+
* But the original Vector4 instances are unchanged and has a "deprecated map".
|
|
3840
|
+
* If we keep using the Vector4 instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
3841
|
+
*/
|
|
3842
|
+
Vector4._V8PerformanceHack = new Vector4(0.5, 0.5, 0.5, 0.5);
|
|
3819
3843
|
Vector4._ZeroReadOnly = Vector4.Zero();
|
|
3820
3844
|
Vector4;
|
|
3821
3845
|
Object.defineProperties(Vector4.prototype, {
|
|
@@ -5173,6 +5197,14 @@ export class Quaternion {
|
|
|
5173
5197
|
return ref.copyFromFloats((value1.x + value2.x) / 2, (value1.y + value2.y) / 2, (value1.z + value2.z) / 2, (value1.w + value2.w) / 2);
|
|
5174
5198
|
}
|
|
5175
5199
|
}
|
|
5200
|
+
/**
|
|
5201
|
+
* If the first quaternion is flagged with integers (as everything is 0,0,0,0), V8 stores all of the properties as integers internally because it doesn't know any better yet.
|
|
5202
|
+
* If subsequent quaternion are created with non-integer values, V8 determines that it would be best to represent these properties as doubles instead of integers,
|
|
5203
|
+
* and henceforth it will use floating-point representation for all quaternion instances that it creates.
|
|
5204
|
+
* But the original quaternion instances are unchanged and has a "deprecated map".
|
|
5205
|
+
* If we keep using the quaternion instances from step 1, it will now be a poison pill which will mess up optimizations in any code it touches.
|
|
5206
|
+
*/
|
|
5207
|
+
Quaternion._V8PerformanceHack = new Quaternion(0.5, 0.5, 0.5, 0.5);
|
|
5176
5208
|
Quaternion;
|
|
5177
5209
|
Object.defineProperties(Quaternion.prototype, {
|
|
5178
5210
|
dimension: { value: [4] },
|