@babylonjs/lite-compat 1.37.0-preview → 1.37.2-preview

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/navigation.d.ts CHANGED
@@ -30,6 +30,7 @@ declare abstract class AbstractEngine {
30
30
  protected readonly _scenes: Scene[];
31
31
  protected readonly _loopCallbacks: Array<() => void>;
32
32
  protected _initialized: boolean;
33
+ private _disposed;
33
34
  private _startupComplete;
34
35
  private _startPromise;
35
36
  /**
36
37
  * Babylon.js `engine.useReverseDepthBuffer`. Babylon Lite owns its depth
@@ -148,12 +149,19 @@ declare abstract class AbstractEngine {
148
149
  private _ensureInitialized;
149
150
  }
150
151
 
152
+ /** Babylon.js `AbstractEngineOptions` subset accepted by the compat engine. */
153
+ declare interface AbstractEngineOptions extends EngineOptions {
154
+ antialias?: boolean;
155
+ adaptToDeviceRatio?: boolean;
156
+ useLargeWorldRendering?: boolean;
157
+ useReverseDepthBuffer?: boolean;
158
+ }
159
+
151
160
  /**
152
161
  * Babylon.js `AbstractMesh` — a renderable transform node with a material,
153
162
  * visibility, and shadow-receipt. Concrete meshes derive from this.
154
163
  */
155
- declare class AbstractMesh extends TransformNode {
156
164
  private _material;
157
- private _meshBlendingTag;
165
+ declare class AbstractMesh extends TransformNode {
158
166
  private _material;
159
167
  private _meshBlendingTag;
160
168
  protected _visible: boolean;
161
169
  constructor(name: string, lite: Mesh, scene?: Scene);
162
170
  getClassName(): string;
163
171
  get material(): CompatMaterial | null;
@@ -658,6 +666,11 @@ declare class CubeTexture extends BaseTexture {
658
666
  gammaSpace: boolean;
659
667
  level: number;
660
668
  /** Fires when the cube map is "ready" (resolved on a microtask in this compat layer). */
661
669
  readonly onLoadObservable: Observable<CubeTexture>;
670
+ /**
671
+ * Babylon.js `CubeTexture.rotationY` — rotation of the environment around the Y axis, in radians. A scene that uses the
672
+ * texture as its `environmentTexture` turns its image-based lighting with it (see `Scene.environmentTexture`).
673
+ */
674
+ rotationY: number;
662
675
  private _ready;
663
676
  private readonly _readyPromise;
664
677
  constructor(url: string, _scene?: unknown, _extensions?: unknown, _noMipmap?: boolean, _files?: unknown, onLoad?: (() => void) | null, _onError?: unknown, _format?: unknown, _prefiltered?: boolean);
@@ -783,6 +796,11 @@ declare class HDRCubeTexture extends BaseTexture {
783
796
  gammaSpace: boolean;
784
797
  level: number;
785
798
  /** Fires when the HDR environment is "ready" (resolved on a microtask). */
786
799
  readonly onLoadObservable: Observable<HDRCubeTexture>;
800
+ /**
801
+ * Babylon.js `HDRCubeTexture.rotationY` — rotation of the environment around the Y axis, in radians. A scene that uses the
802
+ * texture as its `environmentTexture` turns its image-based lighting with it (see `Scene.environmentTexture`).
803
+ */
804
+ rotationY: number;
787
805
  private _ready;
788
806
  private readonly _readyPromise;
789
807
  constructor(url: string, _sceneOrEngine?: unknown, size?: number, _noMipmap?: boolean, _generateHarmonics?: boolean, _gammaSpace?: boolean, _prefilterOnLoad?: boolean, onLoad?: (() => void) | null);
@@ -868,7 +886,7 @@ declare interface IRaycastQuery {
868
886
  }
869
887
 
870
888
  /** Babylon.js `Light` — base class for all lights (derives from `Node`). */
871
- declare abstract class Light extends Node_2 {
872
889
  protected constructor(name: string, scene?: Scene);
890
+ declare abstract class Light extends Node_2 {
873
891
  protected constructor(name: string, scene?: Scene, dontAddToScene?: boolean);
874
892
  getClassName(): string;
875
893
  /**
876
894
  * Babylon.js `light.intensity`. While the light is disabled the Lite light
877
895
  * carries `0`, but the getter still returns the logical value the caller set.
@@ -1003,6 +1021,7 @@ declare class Matrix {
1003
1021
  multiplyToRef(other: Matrix, result: Matrix): Matrix;
1004
1022
  transpose(): Matrix;
1005
1023
  determinant(): number;
1024
+ /** Babylon.js `invert`: inverts this matrix in place and returns it. */
1006
1025
  invert(): Matrix;
1007
1026
  invertToRef(result: Matrix): Matrix;
1008
1027
  getTranslation(): Vector3;
@@ -1639,8 +1658,10 @@ declare class Plane {
1639
1658
  declare class PointerInfo {
1640
1659
  type: number;
1641
1660
  event: PointerEvent | WheelEvent;
1642
- private readonly _pickInfo;
1643
- constructor(type: number, event: PointerEvent | WheelEvent, _pickInfo: PickingInfo | null);
1661
+ private _pickInfo;
1662
+ private _pick;
1663
+ constructor(type: number, event: PointerEvent | WheelEvent, _pickInfo: PickingInfo | null, _pick?: (() => PickingInfo) | null);
1664
+ /** Like Babylon.js lazy picking: without a precomputed pick, `_pick` runs on the first read only. */
1644
1665
  get pickInfo(): PickingInfo | null;
1645
1666
  }
1646
1667
 
@@ -1657,6 +1678,7 @@ declare class Quaternion {
1657
1678
  constructor(x?: number, y?: number, z?: number, w?: number);
1658
1679
  set(x: number, y: number, z: number, w: number): this;
1659
1680
  copyFrom(source: Quaternion): this;
1681
+ /** Babylon.js `multiply`: the product `this · other` as a new quaternion. */
1660
1682
  multiply(other: Quaternion): Quaternion;
1661
1683
  length(): number;
1662
1684
  normalize(): this;
@@ -1808,6 +1830,9 @@ declare class Scene extends AbstractScene {
1808
1830
  /** Babylon.js fog-mode constant
1809
1831
  private readonly _engine;
1810
1832
  private _activeCamera;
1811
1833
  cameraToUseForPointers: Camera | null;
1834
+ /** Babylon.js `scene.pointerX` / `pointerY`: the last pointer position in CSS pixels relative to the canvas. */
1835
+ pointerX: number;
1836
+ pointerY: number;
1812
1837
  private _defaultMaterial;
1813
1838
  private _fogMode;
1814
1839
  private _fogStart;
@@ -1815,6 +1840,8 @@ declare class Scene extends AbstractScene {
1815
1840
  /** Babylon.js fog-mode constant
1816
1841
  private _fogDensity;
1817
1842
  private _fogColor;
1818
1843
  private _started;
1819
1844
  private _envTexture;
1845
+ /** Environment lighting rotation last forwarded to Lite. */
1846
+ private _envRotation;
1820
1847
  private _brdfTexture;
1821
1848
  private _defaultEnvOptions;
1822
1849
  private readonly _shadowGenerators;
@@ -1904,6 +1931,13 @@ declare class Scene extends AbstractScene {
1904
1931
  /** Babylon.js fog-mode constant
1905
1932
  set clipPlane(value: Plane | null);
1906
1933
  get environmentTexture(): CubeTexture | HDRCubeTexture | null;
1907
1934
  set environmentTexture(value: CubeTexture | HDRCubeTexture | null);
1935
+ /**
1936
+ * Forward the environment texture's `rotationY` to the image-based lighting only. As in Babylon.js, a skybox keeps the
1937
+ * orientation it was created with (see {@link createDefaultSkybox}) and the `createDefaultEnvironment` background never
1938
+ * turns. Also runs every frame, so the texture needs no link back to the scenes that use it. A scene whose
1939
+ * environment is never rotated never calls Lite.
1940
+ */
1941
+ private _syncEnvironmentRotation;
1908
1942
  /**
1909
1943
  * Babylon.js `scene.environmentBRDFTexture` — the BRDF lookup used by PBR materials.
1910
1944
  * Babylon.js defaults this to an embedded Base64 LUT and lets apps swap in one of the
@@ -2045,6 +2079,8 @@ declare class StandardMaterial extends PushMaterial {
2045
2079
  /** Diffuse colour as
2046
2080
  set diffuseColor(value: Color3);
2047
2081
  get specularColor(): Color3;
2048
2082
  set specularColor(value: Color3);
2083
+ get roughness(): number;
2084
+ set roughness(value: number);
2049
2085
  get emissiveColor(): Color3;
2050
2086
  set emissiveColor(value: Color3);
2051
2087
  get ambientColor(): Color3;
@@ -2260,10 +2296,7 @@ declare class WebGPUEngine extends AbstractEngine {
2260
2296
  }
2261
2297
 
2262
2298
  /** Babylon.js `WebGPUEngineOptions` subset accepted by the compat engine. */
2263
- declare interface WebGPUEngineOptions extends EngineOptions {
2264
- antialias?: boolean;
2265
- adaptToDeviceRatio?: boolean;
2266
- useLargeWorldRendering?: boolean;
2299
+ declare interface WebGPUEngineOptions extends AbstractEngineOptions {
2267
2300
  canvasToneMapping?: GPUCanvasToneMapping;
2268
2301
  canvasColorSpace?: PredefinedColorSpace;
2269
2302
  }
package/navigation.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as registerMeshAtStart, Q as Vector3, b as Mesh } from "./meshes-zeNif9yt.js";
1
+ import { D as registerMeshAtStart, Q as Vector3, b as Mesh } from "./meshes-sOWGK4P8.js";
2
2
  import { addAgent, addBoxObstacle, addCylinderObstacle, agentGoto, computePath, createDebugNavMeshGeometry, createMeshFromData, createNavCrowd, createNavMesh, createNavigationPluginAsync, getAgentPosition, getClosestPoint, raycast, removeObstacle, updateNavCrowd, updateNavMeshObstacles } from "@babylonjs/lite";
3
3
  //#region src/navigation/navigation.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/lite-compat",
3
- "version": "1.37.0-preview",
3
+ "version": "1.37.2-preview",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Opt-in Babylon.js-shaped compatibility layer implemented on top of the Babylon Lite public API. Provides a migration runway from Babylon.js to Babylon Lite.",
@@ -47,8 +47,8 @@
47
47
  }
48
48
  },
49
49
  "babylonLiteRelease": {
50
- "azureBuildId": "61367",
51
- "sourceVersion": "1a2728c6d44383ef3a79cfc680e2e761b4f1e986",
52
- "builtAgainstLite": "1.37.0"
50
+ "azureBuildId": "61641",
51
+ "sourceVersion": "a05fc292912d3475ec600cea57c76fce2ee9f7f4",
52
+ "builtAgainstLite": "1.37.2"
53
53
  }
54
54
  }