@babylonjs/inspector 8.28.2-preview → 8.28.3-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.
Files changed (2) hide show
  1. package/lib/index.d.ts +27 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -54242,6 +54242,7 @@ declare class CurrentScreenBlock extends NodeMaterialBlock {
54242
54242
  protected _gammaDefineName: string;
54243
54243
  protected _mainUVName: string;
54244
54244
  protected _tempTextureRead: string;
54245
+ protected _texture: Nullable<BaseTexture>;
54245
54246
  /**
54246
54247
  * The name of the sampler to read the screen texture from.
54247
54248
  */
@@ -54249,7 +54250,8 @@ declare class CurrentScreenBlock extends NodeMaterialBlock {
54249
54250
  /**
54250
54251
  * Gets or sets the texture associated with the node
54251
54252
  */
54252
- texture: Nullable<BaseTexture>;
54253
+ get texture(): Nullable<BaseTexture>;
54254
+ set texture(value: Nullable<BaseTexture>);
54253
54255
  /**
54254
54256
  * Gets or sets a boolean indicating if content needs to be converted to gamma space
54255
54257
  */
@@ -63812,6 +63814,13 @@ interface SceneOptions {
63812
63814
  useClonedMeshMap?: boolean;
63813
63815
  /** Defines if the creation of the scene should impact the engine (Eg. UtilityLayer's scene) */
63814
63816
  virtual?: boolean;
63817
+ /**
63818
+ * @experimental
63819
+ * FloatingOriginMode helps avoid floating point imprecision of rendering large worlds by
63820
+ * 1. Forcing the engine to use doublePrecision mode
63821
+ * 2. Offsetting uniform values before passing to shader so that camera is centered at origin and world is offset by camera position
63822
+ */
63823
+ floatingOriginMode?: boolean;
63815
63824
  }
63816
63825
  /**
63817
63826
  * Define how the scene should favor performance over ease of use
@@ -65303,6 +65312,20 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
65303
65312
  * @param ubo the ubo to set for the scene
65304
65313
  */
65305
65314
  setSceneUniformBuffer(ubo: UniformBuffer): void;
65315
+ private _floatingOriginMode;
65316
+ /**
65317
+ * @experimental
65318
+ * When true, enables floatingOriginMode which helps avoid floating point imprecision when using huge coordinate system by
65319
+ * 1. Forcing the engine to use doublePrecision mode
65320
+ * 2. Offsetting uniform values before passing to shader so that camera is centered at origin and world is offset by camera position
65321
+ */
65322
+ get floatingOriginMode(): boolean;
65323
+ private _floatingOriginOffsetDefault;
65324
+ /**
65325
+ * @experimental
65326
+ * When floatingOriginMode is enabled, offset is equal to the active camera position. If no active camera or floatingOriginMode is disabled, offset is 0.
65327
+ */
65328
+ get floatingOriginOffset(): Vector3;
65306
65329
  /**
65307
65330
  * Gets an unique (relatively to the current scene) Id
65308
65331
  * @returns an unique number for the scene
@@ -67919,6 +67942,8 @@ declare class NodeMaterialBuildState {
67919
67942
  * @internal
67920
67943
  */
67921
67944
  _registerTempVariable(name: string): boolean;
67945
+ private _emitDefineStart;
67946
+ private _emitDefineEnd;
67922
67947
  /**
67923
67948
  * @internal
67924
67949
  */
@@ -67946,7 +67971,7 @@ declare class NodeMaterialBuildState {
67946
67971
  /**
67947
67972
  * @internal
67948
67973
  */
67949
- _declareLocalVar(name: string, type: NodeMaterialBlockConnectionPointTypes, isConst?: boolean): string;
67974
+ _declareLocalVar(name: string, type: NodeMaterialBlockConnectionPointTypes, isConst?: boolean, isVarPrivate?: boolean): string;
67950
67975
  /**
67951
67976
  * @internal
67952
67977
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "8.28.2-preview",
3
+ "version": "8.28.3-preview",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",