@babylonjs/core 7.21.4 → 7.22.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/Audio/analyser.js +3 -3
- package/Audio/analyser.js.map +1 -1
- package/Audio/audioSceneComponent.js +7 -7
- package/Audio/audioSceneComponent.js.map +1 -1
- package/Audio/sound.js +55 -50
- package/Audio/sound.js.map +1 -1
- package/Audio/soundTrack.js +11 -11
- package/Audio/soundTrack.js.map +1 -1
- package/Cameras/flyCamera.js +2 -2
- package/Cameras/flyCamera.js.map +1 -1
- package/Cameras/freeCamera.js +2 -2
- package/Cameras/freeCamera.js.map +1 -1
- package/Collisions/collisionCoordinator.js +2 -2
- package/Collisions/collisionCoordinator.js.map +1 -1
- package/Debug/debugLayer.js +2 -2
- package/Debug/debugLayer.js.map +1 -1
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.js +25 -28
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.js.map +1 -1
- package/Engines/abstractEngine.d.ts +18 -3
- package/Engines/abstractEngine.js +32 -13
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.d.ts +0 -7
- package/Engines/engine.js +0 -13
- package/Engines/engine.js.map +1 -1
- package/Engines/nativeEngine.js +3 -9
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/thinEngine.d.ts +0 -37
- package/Engines/thinEngine.js +2 -40
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +1 -2
- package/Engines/webgpuEngine.js.map +1 -1
- package/Gamepads/gamepadManager.js +2 -2
- package/Gamepads/gamepadManager.js.map +1 -1
- package/Loading/sceneLoader.d.ts +2 -2
- package/Loading/sceneLoader.js +3 -3
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Node/nodeMaterialBuildState.d.ts +3 -3
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.d.ts +31 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.huf.d.ts +9 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.huf.js +454 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.huf.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.js +147 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.rle.d.ts +7 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.rle.js +91 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.rle.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.configuration.d.ts +17 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.configuration.js +19 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.configuration.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.core.d.ts +130 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.core.js +452 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.core.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.decoder.d.ts +25 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.decoder.js +284 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.decoder.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.header.d.ts +9 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.header.js +112 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.header.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.interfaces.d.ts +75 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.interfaces.js +16 -0
- package/Materials/Textures/Loaders/EXR/exrLoader.interfaces.js.map +1 -0
- package/Materials/Textures/Loaders/EXR/index.d.ts +7 -0
- package/Materials/Textures/Loaders/EXR/index.js +8 -0
- package/Materials/Textures/Loaders/EXR/index.js.map +1 -0
- package/Materials/Textures/Loaders/basisTextureLoader.d.ts +1 -7
- package/Materials/Textures/Loaders/basisTextureLoader.js +0 -11
- package/Materials/Textures/Loaders/basisTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/ddsTextureLoader.d.ts +1 -7
- package/Materials/Textures/Loaders/ddsTextureLoader.js +0 -11
- package/Materials/Textures/Loaders/ddsTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/envTextureLoader.d.ts +1 -7
- package/Materials/Textures/Loaders/envTextureLoader.js +0 -11
- package/Materials/Textures/Loaders/envTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/exrTextureLoader.d.ts +37 -0
- package/Materials/Textures/Loaders/exrTextureLoader.js +122 -0
- package/Materials/Textures/Loaders/exrTextureLoader.js.map +1 -0
- package/Materials/Textures/Loaders/hdrTextureLoader.d.ts +1 -7
- package/Materials/Textures/Loaders/hdrTextureLoader.js +0 -11
- package/Materials/Textures/Loaders/hdrTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/index.d.ts +4 -0
- package/Materials/Textures/Loaders/index.js +5 -0
- package/Materials/Textures/Loaders/index.js.map +1 -1
- package/Materials/Textures/{internalTextureLoader.d.ts → Loaders/internalTextureLoader.d.ts} +2 -9
- package/Materials/Textures/Loaders/internalTextureLoader.js.map +1 -0
- package/Materials/Textures/Loaders/ktxTextureLoader.d.ts +1 -8
- package/Materials/Textures/Loaders/ktxTextureLoader.js +0 -13
- package/Materials/Textures/Loaders/ktxTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/textureLoaderManager.d.ts +9 -0
- package/Materials/Textures/Loaders/textureLoaderManager.js +32 -0
- package/Materials/Textures/Loaders/textureLoaderManager.js.map +1 -0
- package/Materials/Textures/Loaders/tgaTextureLoader.d.ts +1 -7
- package/Materials/Textures/Loaders/tgaTextureLoader.js +0 -11
- package/Materials/Textures/Loaders/tgaTextureLoader.js.map +1 -1
- package/Materials/Textures/Packer/packer.js +2 -2
- package/Materials/Textures/Packer/packer.js.map +1 -1
- package/Materials/Textures/index.d.ts +0 -1
- package/Materials/Textures/index.js +0 -1
- package/Materials/Textures/index.js.map +1 -1
- package/Materials/fresnelParameters.js +2 -2
- package/Materials/fresnelParameters.js.map +1 -1
- package/Materials/materialFlags.js +24 -24
- package/Materials/materialFlags.js.map +1 -1
- package/Meshes/Node/nodeGeometry.js +2 -2
- package/Meshes/Node/nodeGeometry.js.map +1 -1
- package/Meshes/abstractMesh.js +2 -2
- package/Meshes/abstractMesh.js.map +1 -1
- package/Misc/fileTools.d.ts +13 -0
- package/Misc/fileTools.js +16 -0
- package/Misc/fileTools.js.map +1 -1
- package/Offline/database.js +2 -2
- package/Offline/database.js.map +1 -1
- package/Rendering/boundingBoxRenderer.d.ts +2 -2
- package/Rendering/boundingBoxRenderer.js +2 -2
- package/Rendering/boundingBoxRenderer.js.map +1 -1
- package/Rendering/edgesRenderer.d.ts +7 -2
- package/Rendering/edgesRenderer.js +23 -6
- package/Rendering/edgesRenderer.js.map +1 -1
- package/Rendering/index.d.ts +12 -4
- package/Rendering/index.js +14 -4
- package/Rendering/index.js.map +1 -1
- package/Rendering/outlineRenderer.d.ts +7 -2
- package/Rendering/outlineRenderer.js +64 -11
- package/Rendering/outlineRenderer.js.map +1 -1
- package/ShadersWGSL/line.fragment.d.ts +9 -0
- package/ShadersWGSL/line.fragment.js +24 -0
- package/ShadersWGSL/line.fragment.js.map +1 -0
- package/ShadersWGSL/line.vertex.d.ts +13 -0
- package/ShadersWGSL/line.vertex.js +36 -0
- package/ShadersWGSL/line.vertex.js.map +1 -0
- package/ShadersWGSL/outline.fragment.d.ts +9 -0
- package/ShadersWGSL/outline.fragment.js +30 -0
- package/ShadersWGSL/outline.fragment.js.map +1 -0
- package/ShadersWGSL/outline.vertex.d.ts +19 -0
- package/ShadersWGSL/outline.vertex.js +66 -0
- package/ShadersWGSL/outline.vertex.js.map +1 -0
- package/Sprites/spriteMap.js +4 -4
- package/Sprites/spriteMap.js.map +1 -1
- package/XR/features/WebXRDepthSensing.js +2 -3
- package/XR/features/WebXRDepthSensing.js.map +1 -1
- package/XR/webXRExperienceHelper.js +2 -2
- package/XR/webXRExperienceHelper.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +2 -3
- package/scene.js.map +1 -1
- package/Materials/Textures/internalTextureLoader.js.map +0 -1
- /package/Materials/Textures/{internalTextureLoader.js → Loaders/internalTextureLoader.js} +0 -0
package/Engines/thinEngine.d.ts
CHANGED
|
@@ -85,10 +85,6 @@ export declare class ThinEngine extends AbstractEngine {
|
|
|
85
85
|
* Returns the version of the engine
|
|
86
86
|
*/
|
|
87
87
|
get version(): number;
|
|
88
|
-
/**
|
|
89
|
-
* Gets or sets the epsilon value used by collision engine
|
|
90
|
-
*/
|
|
91
|
-
static CollisionsEpsilon: number;
|
|
92
88
|
/**
|
|
93
89
|
* Gets or sets the relative url used to load shaders if using the engine in non-minified mode
|
|
94
90
|
*/
|
|
@@ -1073,39 +1069,6 @@ export declare class ThinEngine extends AbstractEngine {
|
|
|
1073
1069
|
* Gets a boolean indicating if the engine can be instantiated on a performant device (ie. if a webGL context can be found and it does not use a slow implementation)
|
|
1074
1070
|
*/
|
|
1075
1071
|
static get HasMajorPerformanceCaveat(): boolean;
|
|
1076
|
-
/**
|
|
1077
|
-
* Find the next highest power of two.
|
|
1078
|
-
* @param x Number to start search from.
|
|
1079
|
-
* @returns Next highest power of two.
|
|
1080
|
-
*/
|
|
1081
|
-
static CeilingPOT: (x: number) => number;
|
|
1082
|
-
/**
|
|
1083
|
-
* Find the next lowest power of two.
|
|
1084
|
-
* @param x Number to start search from.
|
|
1085
|
-
* @returns Next lowest power of two.
|
|
1086
|
-
*/
|
|
1087
|
-
static FloorPOT: (x: number) => number;
|
|
1088
|
-
/**
|
|
1089
|
-
* Find the nearest power of two.
|
|
1090
|
-
* @param x Number to start search from.
|
|
1091
|
-
* @returns Next nearest power of two.
|
|
1092
|
-
*/
|
|
1093
|
-
static NearestPOT: (x: number) => number;
|
|
1094
|
-
/**
|
|
1095
|
-
* Get the closest exponent of two
|
|
1096
|
-
* @param value defines the value to approximate
|
|
1097
|
-
* @param max defines the maximum value to return
|
|
1098
|
-
* @param mode defines how to define the closest value
|
|
1099
|
-
* @returns closest exponent of two of the given value
|
|
1100
|
-
*/
|
|
1101
|
-
static GetExponentOfTwo: (value: number, max: number, mode: number) => number;
|
|
1102
|
-
/**
|
|
1103
|
-
* Queue a new function into the requested animation frame pool (ie. this function will be executed by the browser (or the javascript engine) for the next frame)
|
|
1104
|
-
* @param func - the function to be called
|
|
1105
|
-
* @param requester - the object that will request the next frame. Falls back to window.
|
|
1106
|
-
* @returns frame number
|
|
1107
|
-
*/
|
|
1108
|
-
static QueueNewFrame: (func: () => void, requester?: any) => number;
|
|
1109
1072
|
}
|
|
1110
1073
|
interface TexImageParameters {
|
|
1111
1074
|
internalFormat: number;
|
package/Engines/thinEngine.js
CHANGED
|
@@ -5,8 +5,8 @@ import { IsWindowObjectExist } from "../Misc/domManagement.js";
|
|
|
5
5
|
import { WebGLShaderProcessor } from "./WebGL/webGLShaderProcessors.js";
|
|
6
6
|
import { WebGL2ShaderProcessor } from "./WebGL/webGL2ShaderProcessors.js";
|
|
7
7
|
import { WebGLDataBuffer } from "../Meshes/WebGL/webGLDataBuffer.js";
|
|
8
|
-
import {
|
|
9
|
-
import { AbstractEngine
|
|
8
|
+
import { GetExponentOfTwo } from "../Misc/tools.functions.js";
|
|
9
|
+
import { AbstractEngine } from "./abstractEngine.js";
|
|
10
10
|
|
|
11
11
|
import { WebGLHardwareTexture } from "./WebGL/webGLHardwareTexture.js";
|
|
12
12
|
import { InternalTexture } from "../Materials/Textures/internalTexture.js";
|
|
@@ -3558,47 +3558,9 @@ ThinEngine.ExceptionList = [
|
|
|
3558
3558
|
// mobile browsers using safari 15.4 on ios
|
|
3559
3559
|
{ key: ".*(15.4).*AppleWebKit.*Safari", capture: null, captureConstraint: null, targets: ["antialias", "maxMSAASamples"] },
|
|
3560
3560
|
];
|
|
3561
|
-
// Updatable statics so stick with vars here
|
|
3562
|
-
/**
|
|
3563
|
-
* Gets or sets the epsilon value used by collision engine
|
|
3564
|
-
*/
|
|
3565
|
-
ThinEngine.CollisionsEpsilon = 0.001;
|
|
3566
3561
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3567
3562
|
ThinEngine._ConcatenateShader = _ConcatenateShader;
|
|
3568
3563
|
// Statics
|
|
3569
3564
|
ThinEngine._IsSupported = null;
|
|
3570
3565
|
ThinEngine._HasMajorPerformanceCaveat = null;
|
|
3571
|
-
/**
|
|
3572
|
-
* Find the next highest power of two.
|
|
3573
|
-
* @param x Number to start search from.
|
|
3574
|
-
* @returns Next highest power of two.
|
|
3575
|
-
*/
|
|
3576
|
-
ThinEngine.CeilingPOT = CeilingPOT;
|
|
3577
|
-
/**
|
|
3578
|
-
* Find the next lowest power of two.
|
|
3579
|
-
* @param x Number to start search from.
|
|
3580
|
-
* @returns Next lowest power of two.
|
|
3581
|
-
*/
|
|
3582
|
-
ThinEngine.FloorPOT = FloorPOT;
|
|
3583
|
-
/**
|
|
3584
|
-
* Find the nearest power of two.
|
|
3585
|
-
* @param x Number to start search from.
|
|
3586
|
-
* @returns Next nearest power of two.
|
|
3587
|
-
*/
|
|
3588
|
-
ThinEngine.NearestPOT = NearestPOT;
|
|
3589
|
-
/**
|
|
3590
|
-
* Get the closest exponent of two
|
|
3591
|
-
* @param value defines the value to approximate
|
|
3592
|
-
* @param max defines the maximum value to return
|
|
3593
|
-
* @param mode defines how to define the closest value
|
|
3594
|
-
* @returns closest exponent of two of the given value
|
|
3595
|
-
*/
|
|
3596
|
-
ThinEngine.GetExponentOfTwo = GetExponentOfTwo;
|
|
3597
|
-
/**
|
|
3598
|
-
* Queue a new function into the requested animation frame pool (ie. this function will be executed by the browser (or the javascript engine) for the next frame)
|
|
3599
|
-
* @param func - the function to be called
|
|
3600
|
-
* @param requester - the object that will request the next frame. Falls back to window.
|
|
3601
|
-
* @returns frame number
|
|
3602
|
-
*/
|
|
3603
|
-
ThinEngine.QueueNewFrame = QueueNewFrame;
|
|
3604
3566
|
//# sourceMappingURL=thinEngine.js.map
|