@babylonjs/core 9.8.0 → 9.9.1
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/Audio/audioSceneComponent.pure.js +17 -9
- package/Bones/bone.pure.js +39 -29
- package/Cameras/arcRotateCamera.pure.d.ts +0 -8
- package/Cameras/arcRotateCamera.pure.js +0 -12
- package/Cameras/arcRotateCamera.pure.js.map +1 -1
- package/Cameras/inputMapper.d.ts +29 -8
- package/Cameras/inputMapper.js +63 -10
- package/Cameras/inputMapper.js.map +1 -1
- package/Cameras/targetCamera.pure.js +40 -27
- package/Culling/Helper/transformFeedbackBoundingHelper.pure.js +17 -23
- package/Engines/abstractEngine.pure.js +11 -4
- package/Engines/abstractEngine.pure.js.map +1 -1
- package/Engines/engine.pure.d.ts +23 -0
- package/Engines/engine.pure.js +96 -1
- package/Engines/engine.pure.js.map +1 -1
- package/Engines/nativeEngine.pure.d.ts +4 -0
- package/Engines/nativeEngine.pure.js +6 -0
- package/Engines/nativeEngine.pure.js.map +1 -1
- package/Engines/thinEngine.pure.js +234 -280
- package/Engines/thinNativeEngine.pure.d.ts +21 -0
- package/Engines/thinNativeEngine.pure.js +119 -4
- package/Engines/thinNativeEngine.pure.js.map +1 -1
- package/Engines/webgpuEngine.pure.d.ts +21 -0
- package/Engines/webgpuEngine.pure.js +46 -1
- package/Engines/webgpuEngine.pure.js.map +1 -1
- package/Materials/Background/backgroundMaterial.pure.js +5 -4
- package/Materials/Background/backgroundMaterial.pure.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.d.ts +5 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js +8 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js.map +1 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.d.ts +278 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js +718 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js.map +1 -0
- package/Materials/GaussianSplatting/pure.d.ts +1 -0
- package/Materials/GaussianSplatting/pure.js +1 -0
- package/Materials/GaussianSplatting/pure.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.pure.js +10 -14
- package/Materials/Node/Blocks/Dual/index.d.ts +0 -14
- package/Materials/Node/Blocks/Dual/index.js +0 -18
- package/Materials/Node/Blocks/Dual/index.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.pure.js +660 -662
- package/Materials/Node/Blocks/Fragment/index.d.ts +0 -10
- package/Materials/Node/Blocks/Fragment/index.js +0 -13
- package/Materials/Node/Blocks/Fragment/index.js.map +1 -1
- package/Materials/Node/Blocks/GaussianSplatting/index.d.ts +12 -0
- package/Materials/Node/Blocks/GaussianSplatting/index.js +14 -1
- package/Materials/Node/Blocks/GaussianSplatting/index.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/index.d.ts +0 -8
- package/Materials/Node/Blocks/Vertex/index.js +0 -10
- package/Materials/Node/Blocks/Vertex/index.js.map +1 -1
- package/Materials/PBR/openpbrMaterial.pure.js +6 -5
- package/Materials/PBR/openpbrMaterial.pure.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.pure.js +6 -5
- package/Materials/PBR/pbrBaseMaterial.pure.js.map +1 -1
- package/Materials/Textures/index.d.ts +1 -0
- package/Materials/Textures/index.js +1 -0
- package/Materials/Textures/index.js.map +1 -1
- package/Materials/Textures/internalTexture.d.ts +11 -1
- package/Materials/Textures/internalTexture.js +23 -0
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/texture.pure.js +157 -255
- package/Materials/index.d.ts +30 -0
- package/Materials/index.js +31 -0
- package/Materials/index.js.map +1 -1
- package/Materials/material.pure.js +128 -69
- package/Materials/pure.d.ts +1 -0
- package/Materials/pure.js +1 -0
- package/Materials/pure.js.map +1 -1
- package/Materials/standardMaterial.pure.js +6 -5
- package/Materials/standardMaterial.pure.js.map +1 -1
- package/Maths/math.color.pure.js +55 -47
- package/Maths/math.vector.pure.js +118 -242
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.d.ts +7 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js +8 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js.map +1 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.d.ts +147 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js +257 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js.map +1 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.d.ts +11 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js +31 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js.map +1 -1
- package/Meshes/GaussianSplatting/pure.d.ts +1 -0
- package/Meshes/GaussianSplatting/pure.js +1 -0
- package/Meshes/GaussianSplatting/pure.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineMesh.pure.js +9 -14
- package/Meshes/GreasedLine/greasedLineRibbonMesh.pure.js +26 -27
- package/Meshes/index.d.ts +1 -0
- package/Meshes/index.js +1 -0
- package/Meshes/index.js.map +1 -1
- package/Meshes/meshSimplification.common.d.ts +53 -0
- package/Meshes/meshSimplification.common.js +34 -0
- package/Meshes/meshSimplification.common.js.map +1 -0
- package/Meshes/meshSimplification.d.ts +3 -53
- package/Meshes/meshSimplification.js +1 -33
- package/Meshes/meshSimplification.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.pure.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.types.d.ts +2 -1
- package/Meshes/meshSimplificationSceneComponent.types.js.map +1 -1
- package/Meshes/pure.d.ts +1 -0
- package/Meshes/pure.js +1 -0
- package/Meshes/pure.js.map +1 -1
- package/Meshes/transformNode.pure.js +82 -44
- package/Misc/tools.pure.js +124 -186
- package/Misc/tools.pure.js.map +1 -1
- package/Physics/v1/physicsImpostor.pure.js +43 -37
- package/Shaders/ShadersInclude/gaussianSplatting.js +33 -10
- package/Shaders/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/Shaders/gaussianSplatting.vertex.js +20 -1
- package/Shaders/gaussianSplatting.vertex.js.map +1 -1
- package/Shaders/picking.fragment.js +4 -1
- package/Shaders/picking.fragment.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js +33 -10
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/ShadersWGSL/gaussianSplatting.vertex.js +21 -2
- package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
- package/SmartAssets/index.d.ts +2 -2
- package/SmartAssets/index.js +2 -1
- package/SmartAssets/index.js.map +1 -1
- package/SmartAssets/pure.d.ts +1 -1
- package/SmartAssets/pure.js +2 -1
- package/SmartAssets/pure.js.map +1 -1
- package/SmartAssets/smartAssetManager.js +9 -0
- package/SmartAssets/smartAssetManager.js.map +1 -1
- package/package.json +3 -1
package/Maths/math.color.pure.js
CHANGED
|
@@ -32,19 +32,18 @@ export class Color3 {
|
|
|
32
32
|
* @param b defines the blue component (between 0 and 1, default is 0)
|
|
33
33
|
*/
|
|
34
34
|
constructor(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
) {
|
|
35
|
+
/**
|
|
36
|
+
* [0] Defines the red component (between 0 and 1, default is 0)
|
|
37
|
+
*/
|
|
38
|
+
r = 0,
|
|
39
|
+
/**
|
|
40
|
+
* [0] Defines the green component (between 0 and 1, default is 0)
|
|
41
|
+
*/
|
|
42
|
+
g = 0,
|
|
43
|
+
/**
|
|
44
|
+
* [0] Defines the blue component (between 0 and 1, default is 0)
|
|
45
|
+
*/
|
|
46
|
+
b = 0) {
|
|
48
47
|
this.r = r;
|
|
49
48
|
this.g = g;
|
|
50
49
|
this.b = b;
|
|
@@ -568,9 +567,11 @@ export class Color3 {
|
|
|
568
567
|
if (g < b) {
|
|
569
568
|
h += 6;
|
|
570
569
|
}
|
|
571
|
-
}
|
|
570
|
+
}
|
|
571
|
+
else if (max == g) {
|
|
572
572
|
h = (b - r) / dm + 2;
|
|
573
|
-
}
|
|
573
|
+
}
|
|
574
|
+
else if (max == b) {
|
|
574
575
|
h = (r - g) / dm + 4;
|
|
575
576
|
}
|
|
576
577
|
h *= 60;
|
|
@@ -601,7 +602,8 @@ export class Color3 {
|
|
|
601
602
|
convertedColor.r = ColorChannelToLinearSpaceExact(this.r);
|
|
602
603
|
convertedColor.g = ColorChannelToLinearSpaceExact(this.g);
|
|
603
604
|
convertedColor.b = ColorChannelToLinearSpaceExact(this.b);
|
|
604
|
-
}
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
605
607
|
convertedColor.r = ColorChannelToLinearSpace(this.r);
|
|
606
608
|
convertedColor.g = ColorChannelToLinearSpace(this.g);
|
|
607
609
|
convertedColor.b = ColorChannelToLinearSpace(this.b);
|
|
@@ -629,7 +631,8 @@ export class Color3 {
|
|
|
629
631
|
convertedColor.r = ColorChannelToGammaSpaceExact(this.r);
|
|
630
632
|
convertedColor.g = ColorChannelToGammaSpaceExact(this.g);
|
|
631
633
|
convertedColor.b = ColorChannelToGammaSpaceExact(this.b);
|
|
632
|
-
}
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
633
636
|
convertedColor.r = ColorChannelToGammaSpace(this.r);
|
|
634
637
|
convertedColor.g = ColorChannelToGammaSpace(this.g);
|
|
635
638
|
convertedColor.b = ColorChannelToGammaSpace(this.b);
|
|
@@ -654,19 +657,24 @@ export class Color3 {
|
|
|
654
657
|
if (h >= 0 && h <= 1) {
|
|
655
658
|
r = chroma;
|
|
656
659
|
g = x;
|
|
657
|
-
}
|
|
660
|
+
}
|
|
661
|
+
else if (h >= 1 && h <= 2) {
|
|
658
662
|
r = x;
|
|
659
663
|
g = chroma;
|
|
660
|
-
}
|
|
664
|
+
}
|
|
665
|
+
else if (h >= 2 && h <= 3) {
|
|
661
666
|
g = chroma;
|
|
662
667
|
b = x;
|
|
663
|
-
}
|
|
668
|
+
}
|
|
669
|
+
else if (h >= 3 && h <= 4) {
|
|
664
670
|
g = x;
|
|
665
671
|
b = chroma;
|
|
666
|
-
}
|
|
672
|
+
}
|
|
673
|
+
else if (h >= 4 && h <= 5) {
|
|
667
674
|
r = x;
|
|
668
675
|
b = chroma;
|
|
669
|
-
}
|
|
676
|
+
}
|
|
677
|
+
else if (h >= 5 && h <= 6) {
|
|
670
678
|
r = chroma;
|
|
671
679
|
b = x;
|
|
672
680
|
}
|
|
@@ -906,23 +914,22 @@ export class Color4 {
|
|
|
906
914
|
* @param a defines the alpha component (between 0 and 1, default is 1)
|
|
907
915
|
*/
|
|
908
916
|
constructor(
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
) {
|
|
917
|
+
/**
|
|
918
|
+
* [0] Defines the red component (between 0 and 1, default is 0)
|
|
919
|
+
*/
|
|
920
|
+
r = 0,
|
|
921
|
+
/**
|
|
922
|
+
* [0] Defines the green component (between 0 and 1, default is 0)
|
|
923
|
+
*/
|
|
924
|
+
g = 0,
|
|
925
|
+
/**
|
|
926
|
+
* [0] Defines the blue component (between 0 and 1, default is 0)
|
|
927
|
+
*/
|
|
928
|
+
b = 0,
|
|
929
|
+
/**
|
|
930
|
+
* [1] Defines the alpha component (between 0 and 1, default is 1)
|
|
931
|
+
*/
|
|
932
|
+
a = 1) {
|
|
926
933
|
this.r = r;
|
|
927
934
|
this.g = g;
|
|
928
935
|
this.b = b;
|
|
@@ -1313,12 +1320,10 @@ export class Color4 {
|
|
|
1313
1320
|
* @returns true if they are equal
|
|
1314
1321
|
*/
|
|
1315
1322
|
equalsWithEpsilon(otherColor, epsilon = Epsilon) {
|
|
1316
|
-
return (
|
|
1317
|
-
WithinEpsilon(this.r, otherColor.r, epsilon) &&
|
|
1323
|
+
return (WithinEpsilon(this.r, otherColor.r, epsilon) &&
|
|
1318
1324
|
WithinEpsilon(this.g, otherColor.g, epsilon) &&
|
|
1319
1325
|
WithinEpsilon(this.b, otherColor.b, epsilon) &&
|
|
1320
|
-
WithinEpsilon(this.a, otherColor.a, epsilon)
|
|
1321
|
-
);
|
|
1326
|
+
WithinEpsilon(this.a, otherColor.a, epsilon));
|
|
1322
1327
|
}
|
|
1323
1328
|
/**
|
|
1324
1329
|
* Boolean : True if the given floats are strictly equal to the current Color4 coordinates.
|
|
@@ -1472,7 +1477,8 @@ export class Color4 {
|
|
|
1472
1477
|
convertedColor.r = ColorChannelToLinearSpaceExact(this.r);
|
|
1473
1478
|
convertedColor.g = ColorChannelToLinearSpaceExact(this.g);
|
|
1474
1479
|
convertedColor.b = ColorChannelToLinearSpaceExact(this.b);
|
|
1475
|
-
}
|
|
1480
|
+
}
|
|
1481
|
+
else {
|
|
1476
1482
|
convertedColor.r = ColorChannelToLinearSpace(this.r);
|
|
1477
1483
|
convertedColor.g = ColorChannelToLinearSpace(this.g);
|
|
1478
1484
|
convertedColor.b = ColorChannelToLinearSpace(this.b);
|
|
@@ -1501,7 +1507,8 @@ export class Color4 {
|
|
|
1501
1507
|
convertedColor.r = ColorChannelToGammaSpaceExact(this.r);
|
|
1502
1508
|
convertedColor.g = ColorChannelToGammaSpaceExact(this.g);
|
|
1503
1509
|
convertedColor.b = ColorChannelToGammaSpaceExact(this.b);
|
|
1504
|
-
}
|
|
1510
|
+
}
|
|
1511
|
+
else {
|
|
1505
1512
|
convertedColor.r = ColorChannelToGammaSpace(this.r);
|
|
1506
1513
|
convertedColor.g = ColorChannelToGammaSpace(this.g);
|
|
1507
1514
|
convertedColor.b = ColorChannelToGammaSpace(this.b);
|
|
@@ -1682,7 +1689,8 @@ Color4._V8PerformanceHack = /*#__PURE__*/ new Color4(0.5, 0.5, 0.5, 0.5);
|
|
|
1682
1689
|
/**
|
|
1683
1690
|
* @internal
|
|
1684
1691
|
*/
|
|
1685
|
-
export class TmpColors {
|
|
1692
|
+
export class TmpColors {
|
|
1693
|
+
}
|
|
1686
1694
|
TmpColors.Color3 = /*#__PURE__*/ BuildArray(3, Color3.Black);
|
|
1687
1695
|
TmpColors.Color4 = /*#__PURE__*/ BuildArray(3, () => new Color4(0, 0, 0, 0));
|
|
1688
1696
|
let _Registered = false;
|
|
@@ -1706,4 +1714,4 @@ export function RegisterMathColor() {
|
|
|
1706
1714
|
RegisterClass("BABYLON.Color3", Color3);
|
|
1707
1715
|
RegisterClass("BABYLON.Color4", Color4);
|
|
1708
1716
|
}
|
|
1709
|
-
//# sourceMappingURL=math.color.pure.js.map
|
|
1717
|
+
//# sourceMappingURL=math.color.pure.js.map
|