@babylonjs/inspector 8.53.1 → 8.54.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.
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
@@ -36908,6 +36935,8 @@ declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
36908
36935
  */
36909
36936
  _rebuild(dispose?: boolean): void;
36910
36937
  /** @internal */
36938
+ _releaseRenderPassId(id: number): void;
36939
+ /** @internal */
36911
36940
  _freeze(): void;
36912
36941
  /** @internal */
36913
36942
  _unFreeze(): void;
@@ -40224,6 +40253,10 @@ declare abstract class AbstractMesh extends TransformNode implements IDisposable
40224
40253
  * @internal
40225
40254
  */
40226
40255
  _getActionManagerForTrigger(trigger?: number, initialCall?: boolean): Nullable<AbstractActionManager>;
40256
+ /**
40257
+ * @internal
40258
+ */
40259
+ _releaseRenderPassId(_id: number): void;
40227
40260
  /**
40228
40261
  * @internal
40229
40262
  */
@@ -52735,8 +52768,9 @@ declare class FrameGraphShadowGeneratorTask extends FrameGraphTask {
52735
52768
  */
52736
52769
  readonly outputTexture: FrameGraphTextureHandle;
52737
52770
  protected _shadowGenerator: ShadowGenerator | undefined;
52738
- protected _createShadowGenerator(): void;
52739
- protected _setupShadowGenerator(): void;
52771
+ protected _updateShadowMap(): void;
52772
+ protected _createShadowGeneratorInstance(): void;
52773
+ protected _createShadowGenerator(): boolean | undefined;
52740
52774
  isReady(): boolean;
52741
52775
  /**
52742
52776
  * Creates a new shadow generator task.
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-xzWdtYzo.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-DBHYgAua.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -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-xzWdtYzo.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-DBHYgAua.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';
@@ -755,4 +755,4 @@ var quickCreateToolsService = {
755
755
  };
756
756
 
757
757
  export { CreateToolsServiceDefinition, quickCreateToolsService as default };
758
- //# sourceMappingURL=quickCreateToolsService-B8OEbZg5.js.map
758
+ //# sourceMappingURL=quickCreateToolsService-DnszM-9c.js.map