@babylonjs/inspector 8.54.0 → 8.54.2

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/lib/index.d.ts CHANGED
@@ -10546,6 +10546,8 @@ declare class ShadowGenerator implements IShadowGenerator {
10546
10546
  protected _scene: Scene;
10547
10547
  protected _useRedTextureType: boolean;
10548
10548
  protected _lightDirection: Vector3;
10549
+ protected _usefullFloatFirst: boolean;
10550
+ protected _forceGLSL: boolean;
10549
10551
  protected _viewMatrix: Matrix;
10550
10552
  protected _projectionMatrix: Matrix;
10551
10553
  protected _transformMatrix: Matrix;
@@ -10576,6 +10578,29 @@ declare class ShadowGenerator implements IShadowGenerator {
10576
10578
  */
10577
10579
  get mapSize(): number;
10578
10580
  set mapSize(size: number);
10581
+ /**
10582
+ * Gets or sets the light that is casting the shadows
10583
+ */
10584
+ get light(): IShadowLight;
10585
+ set light(light: IShadowLight);
10586
+ /**
10587
+ * Gets or sets a value indicating whether the shadow map should use full float texture type (instead of half float, which is the default).
10588
+ * Use this option when you need more precision (for self shadowing, for instance).
10589
+ */
10590
+ get useFloat32TextureType(): boolean;
10591
+ set useFloat32TextureType(useFloat32TextureType: boolean);
10592
+ /**
10593
+ * Gets or sets the camera associated with this shadow generator.
10594
+ * When null, the scene's active camera is used at render time.
10595
+ */
10596
+ get camera(): Nullable<Camera>;
10597
+ set camera(camera: Nullable<Camera>);
10598
+ /**
10599
+ * Gets or sets a value indicating whether the shadow map should use a red-channel-only texture format.
10600
+ * Using a single-channel format reduces memory usage when color data is not needed.
10601
+ */
10602
+ get useRedTextureFormat(): boolean;
10603
+ set useRedTextureFormat(useRedTextureFormat: boolean);
10579
10604
  /**
10580
10605
  * Creates a ShadowGenerator object.
10581
10606
  * A ShadowGenerator is the required tool to use the shadows.
@@ -10589,6 +10614,7 @@ declare class ShadowGenerator implements IShadowGenerator {
10589
10614
  * @param forceGLSL defines a boolean indicating if the shader must be compiled in GLSL even if we are using WebGPU
10590
10615
  */
10591
10616
  constructor(mapSize: number, light: IShadowLight, usefullFloatFirst?: boolean, camera?: Nullable<Camera>, useRedTextureType?: boolean, forceGLSL?: boolean);
10617
+ private _createInstance;
10592
10618
  protected _initializeGenerator(): void;
10593
10619
  protected _createTargetRenderTexture(): void;
10594
10620
  protected _initializeShadowMap(): void;
@@ -10662,9 +10688,10 @@ declare class ShadowGenerator implements IShadowGenerator {
10662
10688
  protected _disposeSceneUBOs(): void;
10663
10689
  /**
10664
10690
  * Disposes the ShadowGenerator.
10691
+ * @param clearObservables Defines whether to clear the observables or not (true by default).
10665
10692
  * Returns nothing.
10666
10693
  */
10667
- dispose(): void;
10694
+ dispose(clearObservables?: boolean): void;
10668
10695
  /**
10669
10696
  * Serializes the shadow generator setup to a json object.
10670
10697
  * @returns The serialized JSON object
@@ -24365,11 +24392,11 @@ declare abstract class ThinWebGPUEngine extends AbstractEngine {
24365
24392
  /** @internal */
24366
24393
  _showGPUDebugMarkersLog: boolean;
24367
24394
  /** @internal */
24368
- _debugStackRenderEncoder: string[];
24395
+ _debugMarkersEncoderGroups: string[];
24369
24396
  /** @internal */
24370
- _debugStackRenderPass: string[];
24397
+ _debugMarkersPassGroups: string[];
24371
24398
  /** @internal */
24372
- _debugNumPopPending: number;
24399
+ _debugMarkersPendingEncoderPops: number;
24373
24400
  /**
24374
24401
  * Gets the GPU time spent in the main render pass for the last frame rendered (in nanoseconds).
24375
24402
  * You have to enable the "timestamp-query" extension in the engine constructor options and set engine.enableGPUTimingMeasurements = true.
@@ -24394,7 +24421,9 @@ declare abstract class ThinWebGPUEngine extends AbstractEngine {
24394
24421
  * @internal
24395
24422
  */
24396
24423
  _generateMipmaps(texture: InternalTexture, commandEncoder?: GPUCommandEncoder): void;
24397
- protected _debugPushPendingGroups(forRenderPass: boolean): void;
24424
+ protected _debugPopBeforeEndOfEncoder(): void;
24425
+ protected _debugPushAfterStartOfEncoder(): void;
24426
+ protected _debugPendingPop(currentRenderPass: GPURenderPassEncoder): void;
24398
24427
  }
24399
24428
 
24400
24429
  /** @internal */
@@ -26539,8 +26568,9 @@ declare class WebGPUEngine extends ThinWebGPUEngine {
26539
26568
  extractDriverInfo(): string;
26540
26569
  /**
26541
26570
  * Force a WebGPU flush (ie. a flush of all waiting commands)
26571
+ * @internal @param _fromEndFrame defines whether the flush is triggered from endFrame or not (default: false)
26542
26572
  */
26543
- flushFramebuffer(): void;
26573
+ flushFramebuffer(_fromEndFrame?: boolean): void;
26544
26574
  /** @internal */
26545
26575
  _currentFrameBufferIsDefaultFrameBuffer(): boolean;
26546
26576
  /** @internal */
@@ -51636,6 +51666,17 @@ declare class NodeRenderGraph {
51636
51666
  * @returns an array of InputBlocks
51637
51667
  */
51638
51668
  getInputBlocks(): NodeRenderGraphInputBlock[];
51669
+ /**
51670
+ * Replaces a camera in all camera input blocks of this node render graph.
51671
+ * If the current camera is found in any input block, it is replaced by the new camera,
51672
+ * optionally updating the scene's pointer camera and rebuilding the graph.
51673
+ * @param currentCamera The camera to replace.
51674
+ * @param newCamera The new camera to assign to the matching input blocks.
51675
+ * @param updateCameraToUseForPointers If true (default), updates `scene.cameraToUseForPointers` to the new camera when a replacement occurs.
51676
+ * @param rebuildGraph If true (default), rebuilds the graph asynchronously after the replacement.
51677
+ * @returns A promise that resolves to true if at least one input block was updated, false otherwise.
51678
+ */
51679
+ replaceCameraAsync(currentCamera: Nullable<Camera>, newCamera: Camera, updateCameraToUseForPointers?: boolean, rebuildGraph?: boolean): Promise<boolean>;
51639
51680
  /**
51640
51681
  * Launch the node render graph editor
51641
51682
  * @param config Define the configuration of the editor
@@ -52741,8 +52782,9 @@ declare class FrameGraphShadowGeneratorTask extends FrameGraphTask {
52741
52782
  */
52742
52783
  readonly outputTexture: FrameGraphTextureHandle;
52743
52784
  protected _shadowGenerator: ShadowGenerator | undefined;
52744
- protected _createShadowGenerator(): void;
52745
- protected _setupShadowGenerator(): void;
52785
+ protected _updateShadowMap(): void;
52786
+ protected _createShadowGeneratorInstance(): void;
52787
+ protected _createShadowGenerator(): boolean | undefined;
52746
52788
  isReady(): boolean;
52747
52789
  /**
52748
52790
  * Creates a new shadow generator task.
@@ -70384,6 +70426,7 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
70384
70426
  /** @internal */
70385
70427
  _pendingData: any[];
70386
70428
  private _isDisposed;
70429
+ private _isReadyChecks;
70387
70430
  /**
70388
70431
  * Gets or sets a boolean indicating that all submeshes of active meshes must be rendered
70389
70432
  * Use this boolean to avoid computing frustum clipping on submeshes (This could help when you are CPU bound)
@@ -70819,6 +70862,21 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
70819
70862
  * Returns a boolean indicating if the scene is still loading data
70820
70863
  */
70821
70864
  get isLoading(): boolean;
70865
+ /**
70866
+ * Registers an object whose {@link isReady} method will be checked during {@link Scene.isReady}.
70867
+ * Call {@link removeIsReadyCheck} to remove the object.
70868
+ * @param isReadyCheck defines the object to add.
70869
+ */
70870
+ addIsReadyCheck(isReadyCheck: {
70871
+ isReady(): boolean;
70872
+ }): void;
70873
+ /**
70874
+ * Removes an object previously registered with {@link addIsReadyCheck}.
70875
+ * @param isReadyCheck defines the object to remove.
70876
+ */
70877
+ removeIsReadyCheck(isReadyCheck: {
70878
+ isReady(): boolean;
70879
+ }): void;
70822
70880
  /**
70823
70881
  * Registers a function to be executed when the scene is ready
70824
70882
  * @param func - the function to be executed
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion, f as AccordionSection, k as AccordionSectionItem, l as AttachDebugLayer, m as BooleanBadgePropertyLine, n as BoundProperty, o as BuiltInsExtensionFeed, B as Button, g as ButtonLine, p as Checkbox, C as CheckboxPropertyLine, q as ChildWindow, r as Collapse, s as Color3GradientComponent, t as Color3GradientList, v as Color3PropertyLine, w as Color4GradientComponent, x as Color4GradientList, y as Color4PropertyLine, z as ColorPickerPopup, D as ColorStepGradientComponent, E as ComboBox, F as ComboBoxPropertyLine, G as ConstructorFactory, H as ConvertOptions, I as DebugServiceIdentity, J as DetachDebugLayer, K as DraggableLine, O as Dropdown, Q as EntitySelector, R as ErrorBoundary, U as ExtensibleAccordion, W as FactorGradientComponent, X as FactorGradientList, Y as FileUploadLine, Z as GetPropertyDescriptor, _ as GizmoServiceIdentity, $ as HexPropertyLine, a0 as InfoLabel, a1 as InputHexField, a2 as InputHsvField, a3 as Inspector, a4 as InterceptFunction, a5 as InterceptProperty, a6 as IsPropertyReadonly, a7 as LineContainer, j as Link, a8 as LinkPropertyLine, L as LinkToEntity, a9 as LinkToEntityPropertyLine, aa as List, ab as MakeDialogTeachingMoment, ac as MakeLazyComponent, ad as MakePopoverTeachingMoment, ae as MakePropertyHook, af as MakeTeachingMoment, ag as MaterialSelector, M as MessageBar, ah as NodeSelector, ai as NumberDropdown, aj as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ak as ObservableCollection, al as Pane, am as PlaceholderPropertyLine, P as Popover, an as PositionedPopover, ao as PropertiesServiceIdentity, ap as Property, aq as PropertyContext, ar as PropertyLine, as as QuaternionPropertyLine, at as RotationVectorPropertyLine, c as SceneContextIdentity, au as SceneExplorerServiceIdentity, av as SearchBar, aw as SearchBox, ax as SelectionServiceDefinition, d as SelectionServiceIdentity, ay as SettingsServiceIdentity, az as SettingsStore, aA as SettingsStoreIdentity, b as ShellServiceIdentity, aB as ShowInspector, aC as SidePaneContainer, aD as SkeletonSelector, aE as Slider, aF as SpinButton, S as SpinButtonPropertyLine, aG as StatsServiceIdentity, aH as StringDropdown, aI as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, aK as Switch, aL as SwitchPropertyLine, aM as SyncedSliderInput, aN as SyncedSliderPropertyLine, aO as TeachingMoment, aP as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, aR as TextPropertyLine, aS as Textarea, aT as TextureSelector, aU as TextureUpload, aV as Theme, aW as ThemeServiceIdentity, aX as ToastProvider, aY as ToggleButton, h as ToolsServiceIdentity, aZ as Tooltip, a_ as UploadButton, a$ as Vector2PropertyLine, V as Vector3PropertyLine, b0 as Vector4PropertyLine, b1 as WatcherServiceIdentity, b2 as useAngleConverters, b3 as useAsyncResource, b4 as useColor3Property, b5 as useColor4Property, b6 as useEventListener, b7 as useEventfulState, b8 as useInterceptObservable, b9 as useKeyListener, ba as useKeyState, bb as useObservableCollection, e as useObservableState, bc as useOrderedObservableCollection, bd as usePollingObservable, a as useProperty, be as usePropertyChangedNotifier, bf as useQuaternionProperty, bg as useResource, bh as useSetting, bi as useTheme, bj as useThemeMode, u as useToast, bk as useVector3Property } from './index-DBHYgAua.js';
1
+ export { A as Accordion, f as AccordionSection, k as AccordionSectionItem, l as AttachDebugLayer, m as BooleanBadgePropertyLine, n as BoundProperty, o as BuiltInsExtensionFeed, B as Button, g as ButtonLine, p as Checkbox, C as CheckboxPropertyLine, q as ChildWindow, r as Collapse, s as Color3GradientComponent, t as Color3GradientList, v as Color3PropertyLine, w as Color4GradientComponent, x as Color4GradientList, y as Color4PropertyLine, z as ColorPickerPopup, D as ColorStepGradientComponent, E as ComboBox, F as ComboBoxPropertyLine, G as ConstructorFactory, H as ConvertOptions, I as DebugServiceIdentity, J as DetachDebugLayer, K as DraggableLine, O as Dropdown, Q as EntitySelector, R as ErrorBoundary, U as ExtensibleAccordion, W as FactorGradientComponent, X as FactorGradientList, Y as FileUploadLine, Z as GetPropertyDescriptor, _ as GizmoServiceIdentity, $ as HexPropertyLine, a0 as InfoLabel, a1 as InputHexField, a2 as InputHsvField, a3 as Inspector, a4 as InterceptFunction, a5 as InterceptProperty, a6 as IsPropertyReadonly, a7 as LineContainer, j as Link, a8 as LinkPropertyLine, L as LinkToEntity, a9 as LinkToEntityPropertyLine, aa as List, ab as MakeDialogTeachingMoment, ac as MakeLazyComponent, ad as MakePopoverTeachingMoment, ae as MakePropertyHook, af as MakeTeachingMoment, ag as MaterialSelector, M as MessageBar, ah as NodeSelector, ai as NumberDropdown, aj as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ak as ObservableCollection, al as Pane, am as PlaceholderPropertyLine, P as Popover, an as PositionedPopover, ao as PropertiesServiceIdentity, ap as Property, aq as PropertyContext, ar as PropertyLine, as as QuaternionPropertyLine, at as RotationVectorPropertyLine, c as SceneContextIdentity, au as SceneExplorerServiceIdentity, av as SearchBar, aw as SearchBox, ax as SelectionServiceDefinition, d as SelectionServiceIdentity, ay as SettingsServiceIdentity, az as SettingsStore, aA as SettingsStoreIdentity, b as ShellServiceIdentity, aB as ShowInspector, aC as SidePaneContainer, aD as SkeletonSelector, aE as Slider, aF as SpinButton, S as SpinButtonPropertyLine, aG as StatsServiceIdentity, aH as StringDropdown, aI as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, aK as Switch, aL as SwitchPropertyLine, aM as SyncedSliderInput, aN as SyncedSliderPropertyLine, aO as TeachingMoment, aP as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, aR as TextPropertyLine, aS as Textarea, aT as TextureSelector, aU as TextureUpload, aV as Theme, aW as ThemeServiceIdentity, aX as ToastProvider, aY as ToggleButton, h as ToolsServiceIdentity, aZ as Tooltip, a_ as UploadButton, a$ as Vector2PropertyLine, V as Vector3PropertyLine, b0 as Vector4PropertyLine, b1 as WatcherServiceIdentity, b2 as useAngleConverters, b3 as useAsyncResource, b4 as useColor3Property, b5 as useColor4Property, b6 as useEventListener, b7 as useEventfulState, b8 as useInterceptObservable, b9 as useKeyListener, ba as useKeyState, bb as useObservableCollection, e as useObservableState, bc as useOrderedObservableCollection, bd as usePollingObservable, a as useProperty, be as usePropertyChangedNotifier, bf as useQuaternionProperty, bg as useResource, bh as useSetting, bi as useTheme, bj as useThemeMode, u as useToast, bk as useVector3Property } from './index-CIc0CbG8.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -144,6 +144,7 @@ import '@babylonjs/core/Misc/sceneSerializer.js';
144
144
  import '@babylonjs/core/Misc/environmentTextureTools.js';
145
145
  import '@babylonjs/core/Loading/sceneLoader.js';
146
146
  import '@babylonjs/core/Misc/filesInput.js';
147
+ import '@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js';
147
148
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
148
149
  import '@babylonjs/loaders/glTF/glTFValidation.js';
149
150
  import '@babylonjs/core/Engines/engineStore.js';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-DBHYgAua.js';
2
+ import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-CIc0CbG8.js';
3
3
  import { SettingsRegular, CollectionsAdd20Regular } from '@fluentui/react-icons';
4
4
  import '@babylonjs/core/Particles/webgl2ParticleSystem.js';
5
5
  import '@babylonjs/core/Rendering/prePassRendererSceneComponent.js';
@@ -153,6 +153,7 @@ import '@babylonjs/core/Misc/screenshotTools.js';
153
153
  import '@babylonjs/core/Misc/videoRecorder.js';
154
154
  import '@babylonjs/core/Misc/sceneSerializer.js';
155
155
  import '@babylonjs/core/Misc/environmentTextureTools.js';
156
+ import '@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js';
156
157
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
157
158
  import '@babylonjs/loaders/glTF/glTFValidation.js';
158
159
  import '@babylonjs/core/Engines/engineStore.js';
@@ -755,4 +756,4 @@ var quickCreateToolsService = {
755
756
  };
756
757
 
757
758
  export { CreateToolsServiceDefinition, quickCreateToolsService as default };
758
- //# sourceMappingURL=quickCreateToolsService-DnszM-9c.js.map
759
+ //# sourceMappingURL=quickCreateToolsService-D-cyDKNQ.js.map