babylonjs-addons 8.33.4 → 8.34.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.
@@ -2423,10 +2423,15 @@ declare module ADDONS {
2423
2423
  get clampedCameraHeight(): number;
2424
2424
  /**
2425
2425
  * The camera position in global space kilometers.
2426
+ *
2427
+ * The behavior of this value depends on whether floating origin mode is enabled:
2428
+ * - If floating origin mode is enabled, this is simply the camera's global position scaled to kilometers. The atmosphere's origin height is used to offset the camera position along its geocentric normal.
2429
+ * - If floating origin mode is disabled, the camera's y position is offset by the planet radius plus any origin height.
2426
2430
  */
2427
2431
  get cameraPositionGlobal(): BABYLON.IVector3Like;
2428
2432
  /**
2429
2433
  * The camera position, clamped to the planet radius offset, in global space kilometers.
2434
+ * See {@link cameraPositionGlobal} for details on how the value is computed.
2430
2435
  */
2431
2436
  get clampedCameraPositionGlobal(): BABYLON.IVector3Like;
2432
2437
  /**
@@ -2439,6 +2444,7 @@ declare module ADDONS {
2439
2444
  get sinCameraAtmosphereHorizonAngleFromNadir(): number;
2440
2445
  /**
2441
2446
  * The geocentric normal of the camera in global space i.e., the normalization of {@link cameraPositionGlobal}.
2447
+ * Note the behavior of this value depends on whether floating origin mode is enabled. See {@link cameraPositionGlobal} for details.
2442
2448
  */
2443
2449
  get cameraGeocentricNormal(): BABYLON.IVector3Like;
2444
2450
  /**
@@ -2753,11 +2759,11 @@ declare module ADDONS {
2753
2759
  /**
2754
2760
  * Called before the LUTs are rendered for this camera. This happens after the per-camera UBO update.
2755
2761
  */
2756
- readonly onBeforeRenderLutsForCameraObservable: BABYLON.Observable<void>;
2762
+ readonly onBeforeRenderLutsForCameraObservable: BABYLON.Observable<BABYLON.Camera>;
2757
2763
  /**
2758
2764
  * Called after the LUTs were rendered.
2759
2765
  */
2760
- readonly onAfterRenderLutsForCameraObservable: BABYLON.Observable<void>;
2766
+ readonly onAfterRenderLutsForCameraObservable: BABYLON.Observable<BABYLON.Camera>;
2761
2767
  /**
2762
2768
  * If provided, this is the depth texture used for composition passes.
2763
2769
  * Expects an infinite far plane on the camera (camera.maxZ = 0) and the non-linear depth accessible in red channel.
@@ -3011,6 +3017,7 @@ declare module ADDONS {
3011
3017
  /**
3012
3018
  * Renders the lookup tables, some of which can vary per-camera.
3013
3019
  * It is expected that updatePerCameraVariables was previously called.
3020
+ * @param camera - The camera to render the LUTs for.
3014
3021
  */
3015
3022
  private _renderLutsForCamera;
3016
3023
  /**