@babylonjs/inspector 8.51.0 → 8.51.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/{extensionsListService-CUyeLpUm.js → extensionsListService-Dj1XtRzF.js} +2 -2
- package/lib/{extensionsListService-CUyeLpUm.js.map → extensionsListService-Dj1XtRzF.js.map} +1 -1
- package/lib/gif-D_8cJm3S.js +23 -0
- package/lib/gif-D_8cJm3S.js.map +1 -0
- package/lib/{index-EfxraoQm.js → index-DrQrky1o.js} +78 -22
- package/lib/index-DrQrky1o.js.map +1 -0
- package/lib/index.d.ts +322 -74
- package/lib/index.js +1 -1
- package/lib/{quickCreateToolsService-CnnbyzjA.js → quickCreateToolsService-BuEys230.js} +2 -2
- package/lib/{quickCreateToolsService-CnnbyzjA.js.map → quickCreateToolsService-BuEys230.js.map} +1 -1
- package/lib/{reflectorService-Bdo0L9jA.js → reflectorService-Dwsb8ijf.js} +2 -2
- package/lib/{reflectorService-Bdo0L9jA.js.map → reflectorService-Dwsb8ijf.js.map} +1 -1
- package/package.json +2 -1
- package/lib/gif-8Ty35Toc.js +0 -2
- package/lib/gif-8Ty35Toc.js.map +0 -1
- package/lib/index-EfxraoQm.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -511,6 +511,11 @@ type SidePaneDefinition = {
|
|
|
511
511
|
* Teaching moments are more helpful for dynamically added panes, possibly from extensions.
|
|
512
512
|
*/
|
|
513
513
|
suppressTeachingMoment?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Keep the pane mounted even when it is not visible. This is useful if you don't want the
|
|
516
|
+
* user to lose the complex visual state when switching between tabs.
|
|
517
|
+
*/
|
|
518
|
+
keepMounted?: boolean;
|
|
514
519
|
};
|
|
515
520
|
type RegisteredSidePane = {
|
|
516
521
|
readonly key: string;
|
|
@@ -1402,6 +1407,8 @@ interface IGizmoService extends IService<typeof GizmoServiceIdentity> {
|
|
|
1402
1407
|
readonly onGizmoModeChanged: IReadonlyObservable$1<void>;
|
|
1403
1408
|
coordinatesMode: GizmoCoordinatesMode;
|
|
1404
1409
|
readonly onCoordinatesModeChanged: IReadonlyObservable$1<void>;
|
|
1410
|
+
gizmoCamera: Camera$1 | null;
|
|
1411
|
+
readonly onCameraGizmoChanged: IReadonlyObservable$1<void>;
|
|
1405
1412
|
}
|
|
1406
1413
|
|
|
1407
1414
|
type ModularToolOptions = {
|
|
@@ -22389,6 +22396,77 @@ declare class SubEmitter {
|
|
|
22389
22396
|
dispose(): void;
|
|
22390
22397
|
}
|
|
22391
22398
|
|
|
22399
|
+
/**
|
|
22400
|
+
* @internal
|
|
22401
|
+
* Holds all internal properties of a Particle, grouped into a single sub-object
|
|
22402
|
+
* to keep the Particle's own property count low (V8 in-object property limit).
|
|
22403
|
+
*/
|
|
22404
|
+
declare class ParticleInternalProperties {
|
|
22405
|
+
/** @internal */
|
|
22406
|
+
randomCellOffset?: number;
|
|
22407
|
+
/** @internal */
|
|
22408
|
+
initialDirection: Nullable<Vector3>;
|
|
22409
|
+
/** @internal */
|
|
22410
|
+
attachedSubEmitters: Nullable<Array<SubEmitter>>;
|
|
22411
|
+
/** @internal */
|
|
22412
|
+
initialStartSpriteCellId: number;
|
|
22413
|
+
/** @internal */
|
|
22414
|
+
initialEndSpriteCellId: number;
|
|
22415
|
+
/** @internal */
|
|
22416
|
+
initialSpriteCellLoop: boolean;
|
|
22417
|
+
/** @internal */
|
|
22418
|
+
currentColorGradient: Nullable<ColorGradient>;
|
|
22419
|
+
/** @internal */
|
|
22420
|
+
currentColor1: Color4;
|
|
22421
|
+
/** @internal */
|
|
22422
|
+
currentColor2: Color4;
|
|
22423
|
+
/** @internal */
|
|
22424
|
+
currentSizeGradient: Nullable<FactorGradient>;
|
|
22425
|
+
/** @internal */
|
|
22426
|
+
currentSize1: number;
|
|
22427
|
+
/** @internal */
|
|
22428
|
+
currentSize2: number;
|
|
22429
|
+
/** @internal */
|
|
22430
|
+
currentAngularSpeedGradient: Nullable<FactorGradient>;
|
|
22431
|
+
/** @internal */
|
|
22432
|
+
currentAngularSpeed1: number;
|
|
22433
|
+
/** @internal */
|
|
22434
|
+
currentAngularSpeed2: number;
|
|
22435
|
+
/** @internal */
|
|
22436
|
+
currentVelocityGradient: Nullable<FactorGradient>;
|
|
22437
|
+
/** @internal */
|
|
22438
|
+
currentVelocity1: number;
|
|
22439
|
+
/** @internal */
|
|
22440
|
+
currentVelocity2: number;
|
|
22441
|
+
/** @internal */
|
|
22442
|
+
directionScale: number;
|
|
22443
|
+
/** @internal */
|
|
22444
|
+
scaledDirection: Vector3;
|
|
22445
|
+
/** @internal */
|
|
22446
|
+
currentLimitVelocityGradient: Nullable<FactorGradient>;
|
|
22447
|
+
/** @internal */
|
|
22448
|
+
currentLimitVelocity1: number;
|
|
22449
|
+
/** @internal */
|
|
22450
|
+
currentLimitVelocity2: number;
|
|
22451
|
+
/** @internal */
|
|
22452
|
+
currentDragGradient: Nullable<FactorGradient>;
|
|
22453
|
+
/** @internal */
|
|
22454
|
+
currentDrag1: number;
|
|
22455
|
+
/** @internal */
|
|
22456
|
+
currentDrag2: number;
|
|
22457
|
+
/** @internal */
|
|
22458
|
+
randomNoiseCoordinates1: Nullable<Vector3>;
|
|
22459
|
+
/** @internal */
|
|
22460
|
+
randomNoiseCoordinates2: Nullable<Vector3>;
|
|
22461
|
+
/** @internal */
|
|
22462
|
+
localPosition?: Vector3;
|
|
22463
|
+
/**
|
|
22464
|
+
* Callback triggered when the particle is reset
|
|
22465
|
+
*/
|
|
22466
|
+
onReset: Nullable<() => void>;
|
|
22467
|
+
/** @internal */
|
|
22468
|
+
reset(): void;
|
|
22469
|
+
}
|
|
22392
22470
|
/**
|
|
22393
22471
|
* A particle represents one of the element emitted by a particle system.
|
|
22394
22472
|
* This is mainly define by its coordinates, direction, velocity and age.
|
|
@@ -22460,67 +22538,7 @@ declare class Particle {
|
|
|
22460
22538
|
*/
|
|
22461
22539
|
remapData: Vector4;
|
|
22462
22540
|
/** @internal */
|
|
22463
|
-
|
|
22464
|
-
/** @internal */
|
|
22465
|
-
_initialDirection: Nullable<Vector3>;
|
|
22466
|
-
/** @internal */
|
|
22467
|
-
_attachedSubEmitters: Nullable<Array<SubEmitter>>;
|
|
22468
|
-
/** @internal */
|
|
22469
|
-
_initialStartSpriteCellId: number;
|
|
22470
|
-
/** @internal */
|
|
22471
|
-
_initialEndSpriteCellId: number;
|
|
22472
|
-
/** @internal */
|
|
22473
|
-
_initialSpriteCellLoop: boolean;
|
|
22474
|
-
/** @internal */
|
|
22475
|
-
_currentColorGradient: Nullable<ColorGradient>;
|
|
22476
|
-
/** @internal */
|
|
22477
|
-
_currentColor1: Color4;
|
|
22478
|
-
/** @internal */
|
|
22479
|
-
_currentColor2: Color4;
|
|
22480
|
-
/** @internal */
|
|
22481
|
-
_currentSizeGradient: Nullable<FactorGradient>;
|
|
22482
|
-
/** @internal */
|
|
22483
|
-
_currentSize1: number;
|
|
22484
|
-
/** @internal */
|
|
22485
|
-
_currentSize2: number;
|
|
22486
|
-
/** @internal */
|
|
22487
|
-
_currentAngularSpeedGradient: Nullable<FactorGradient>;
|
|
22488
|
-
/** @internal */
|
|
22489
|
-
_currentAngularSpeed1: number;
|
|
22490
|
-
/** @internal */
|
|
22491
|
-
_currentAngularSpeed2: number;
|
|
22492
|
-
/** @internal */
|
|
22493
|
-
_currentVelocityGradient: Nullable<FactorGradient>;
|
|
22494
|
-
/** @internal */
|
|
22495
|
-
_currentVelocity1: number;
|
|
22496
|
-
/** @internal */
|
|
22497
|
-
_currentVelocity2: number;
|
|
22498
|
-
/** @internal */
|
|
22499
|
-
_directionScale: number;
|
|
22500
|
-
/** @internal */
|
|
22501
|
-
_scaledDirection: Vector3;
|
|
22502
|
-
/** @internal */
|
|
22503
|
-
_currentLimitVelocityGradient: Nullable<FactorGradient>;
|
|
22504
|
-
/** @internal */
|
|
22505
|
-
_currentLimitVelocity1: number;
|
|
22506
|
-
/** @internal */
|
|
22507
|
-
_currentLimitVelocity2: number;
|
|
22508
|
-
/** @internal */
|
|
22509
|
-
_currentDragGradient: Nullable<FactorGradient>;
|
|
22510
|
-
/** @internal */
|
|
22511
|
-
_currentDrag1: number;
|
|
22512
|
-
/** @internal */
|
|
22513
|
-
_currentDrag2: number;
|
|
22514
|
-
/** @internal */
|
|
22515
|
-
_randomNoiseCoordinates1: Nullable<Vector3>;
|
|
22516
|
-
/** @internal */
|
|
22517
|
-
_randomNoiseCoordinates2: Nullable<Vector3>;
|
|
22518
|
-
/** @internal */
|
|
22519
|
-
_localPosition?: Vector3;
|
|
22520
|
-
/**
|
|
22521
|
-
* Callback triggered when the particle is reset
|
|
22522
|
-
*/
|
|
22523
|
-
onReset: Nullable<() => void>;
|
|
22541
|
+
_properties: ParticleInternalProperties;
|
|
22524
22542
|
/**
|
|
22525
22543
|
* Creates a new instance Particle
|
|
22526
22544
|
* @param particleSystem the particle system the particle belongs to
|
|
@@ -29512,6 +29530,18 @@ declare class Skeleton implements IAnimatable {
|
|
|
29512
29530
|
* @returns the indice of the bone. Returns -1 if not found
|
|
29513
29531
|
*/
|
|
29514
29532
|
getBoneIndexByName(name: string): number;
|
|
29533
|
+
/**
|
|
29534
|
+
* Finds a bone in a skeleton that is linked to the given transform node.
|
|
29535
|
+
* @param transformNode The transform node to find the bone for
|
|
29536
|
+
* @returns The bone linked to the transform node, or null if not found
|
|
29537
|
+
*/
|
|
29538
|
+
findBoneFromLinkedTransformNode(transformNode: TransformNode): Bone | null;
|
|
29539
|
+
/**
|
|
29540
|
+
* Finds a bone in a skeleton by the name of its linked transform node.
|
|
29541
|
+
* @param name The name of the linked transform node
|
|
29542
|
+
* @returns The bone linked to the transform node with the given name, or null if not found
|
|
29543
|
+
*/
|
|
29544
|
+
findBoneFromLinkedTransformNodeName(name: string): Bone | null;
|
|
29515
29545
|
/**
|
|
29516
29546
|
* Create a new animation range
|
|
29517
29547
|
* @param name defines the name of the range
|
|
@@ -29649,7 +29679,6 @@ declare class Skeleton implements IAnimatable {
|
|
|
29649
29679
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/morphTargets
|
|
29650
29680
|
*/
|
|
29651
29681
|
declare class MorphTarget implements IAnimatable {
|
|
29652
|
-
/** defines the name of the target */
|
|
29653
29682
|
name: string;
|
|
29654
29683
|
/**
|
|
29655
29684
|
* Gets or sets the list of animations
|
|
@@ -29679,6 +29708,10 @@ declare class MorphTarget implements IAnimatable {
|
|
|
29679
29708
|
* Gets or sets the id of the morph Target
|
|
29680
29709
|
*/
|
|
29681
29710
|
id: string;
|
|
29711
|
+
/**
|
|
29712
|
+
* Gets or sets the morph target manager this morph target is associated with
|
|
29713
|
+
*/
|
|
29714
|
+
morphTargetManager: Nullable<MorphTargetManager>;
|
|
29682
29715
|
private _animationPropertiesOverride;
|
|
29683
29716
|
/**
|
|
29684
29717
|
* Gets or sets the animation properties override
|
|
@@ -29690,10 +29723,9 @@ declare class MorphTarget implements IAnimatable {
|
|
|
29690
29723
|
* @param name defines the name of the target
|
|
29691
29724
|
* @param influence defines the influence to use
|
|
29692
29725
|
* @param scene defines the scene the morphtarget belongs to
|
|
29726
|
+
* @param morphTargetManager morph target manager this morph target is associated with
|
|
29693
29727
|
*/
|
|
29694
|
-
constructor(
|
|
29695
|
-
/** defines the name of the target */
|
|
29696
|
-
name: string, influence?: number, scene?: Nullable<Scene>);
|
|
29728
|
+
constructor(name: string, influence?: number, scene?: Nullable<Scene>, morphTargetManager?: Nullable<MorphTargetManager>);
|
|
29697
29729
|
/**
|
|
29698
29730
|
* Gets the unique ID of this manager
|
|
29699
29731
|
*/
|
|
@@ -29802,9 +29834,10 @@ declare class MorphTarget implements IAnimatable {
|
|
|
29802
29834
|
* Creates a new target from serialized data
|
|
29803
29835
|
* @param serializationObject defines the serialized data to use
|
|
29804
29836
|
* @param scene defines the hosting scene
|
|
29837
|
+
* @param morphTargetManager morph target manager this morph target is associated with
|
|
29805
29838
|
* @returns a new MorphTarget
|
|
29806
29839
|
*/
|
|
29807
|
-
static Parse(serializationObject: any, scene?: Scene): MorphTarget;
|
|
29840
|
+
static Parse(serializationObject: any, scene?: Scene, morphTargetManager?: Nullable<MorphTargetManager>): MorphTarget;
|
|
29808
29841
|
/**
|
|
29809
29842
|
* Creates a MorphTarget from mesh data
|
|
29810
29843
|
* @param mesh defines the source mesh
|
|
@@ -29876,6 +29909,7 @@ declare class RawTexture2DArray extends Texture {
|
|
|
29876
29909
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/mesh/morphTargets
|
|
29877
29910
|
*/
|
|
29878
29911
|
declare class MorphTargetManager implements IDisposable {
|
|
29912
|
+
meshName?: string | undefined;
|
|
29879
29913
|
/** Enable storing morph target data into textures when set to true (true by default) */
|
|
29880
29914
|
static EnableTextureStorage: boolean;
|
|
29881
29915
|
/** Maximum number of active morph targets supported in the "vertex attribute" mode (i.e., not the "texture" mode) */
|
|
@@ -29951,8 +29985,9 @@ declare class MorphTargetManager implements IDisposable {
|
|
|
29951
29985
|
/**
|
|
29952
29986
|
* Creates a new MorphTargetManager
|
|
29953
29987
|
* @param scene defines the current scene
|
|
29988
|
+
* @param meshName name of the mesh this morph target manager is associated with
|
|
29954
29989
|
*/
|
|
29955
|
-
constructor(scene?: Nullable<Scene
|
|
29990
|
+
constructor(scene?: Nullable<Scene>, meshName?: string | undefined);
|
|
29956
29991
|
private _numMaxInfluencers;
|
|
29957
29992
|
/**
|
|
29958
29993
|
* Gets or sets the maximum number of influencers (targets) (default value: 0).
|
|
@@ -30503,9 +30538,10 @@ declare class AnimationGroup implements IDisposable {
|
|
|
30503
30538
|
* @param newName defines the name of the new group
|
|
30504
30539
|
* @param targetConverter defines an optional function used to convert current animation targets to new ones
|
|
30505
30540
|
* @param cloneAnimations defines if the animations should be cloned or referenced
|
|
30541
|
+
* @param cloneAnimationKeys defines if the animation keys should be cloned when cloning animations (false by default). No effect if cloneAnimations is false
|
|
30506
30542
|
* @returns the new animation group
|
|
30507
30543
|
*/
|
|
30508
|
-
clone(newName: string, targetConverter?: (oldTarget: any) => any, cloneAnimations?: boolean): AnimationGroup;
|
|
30544
|
+
clone(newName: string, targetConverter?: (oldTarget: any) => any, cloneAnimations?: boolean, cloneAnimationKeys?: boolean): AnimationGroup;
|
|
30509
30545
|
/**
|
|
30510
30546
|
* Serializes the animationGroup to an object
|
|
30511
30547
|
* @returns Serialized object
|
|
@@ -58933,12 +58969,35 @@ declare class TextureBlock extends NodeMaterialBlock {
|
|
|
58933
58969
|
get level(): NodeMaterialConnectionPoint;
|
|
58934
58970
|
private _isTiedToFragment;
|
|
58935
58971
|
private _getEffectiveTarget;
|
|
58972
|
+
/** {@inheritDoc} */
|
|
58936
58973
|
get target(): NodeMaterialBlockTargets;
|
|
58974
|
+
/** {@inheritDoc} */
|
|
58937
58975
|
set target(value: NodeMaterialBlockTargets);
|
|
58976
|
+
/**
|
|
58977
|
+
* Auto configure the block based on the material
|
|
58978
|
+
* @param material - the node material
|
|
58979
|
+
* @param additionalFilteringInfo - optional filtering info
|
|
58980
|
+
*/
|
|
58938
58981
|
autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void;
|
|
58982
|
+
/**
|
|
58983
|
+
* Initialize the list of defines
|
|
58984
|
+
* @param defines - the material defines
|
|
58985
|
+
*/
|
|
58939
58986
|
initializeDefines(defines: NodeMaterialDefines): void;
|
|
58987
|
+
/**
|
|
58988
|
+
* Prepare the list of defines
|
|
58989
|
+
* @param defines - the material defines
|
|
58990
|
+
*/
|
|
58940
58991
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
58992
|
+
/**
|
|
58993
|
+
* Checks if the block is ready
|
|
58994
|
+
* @returns true if ready
|
|
58995
|
+
*/
|
|
58941
58996
|
isReady(): boolean;
|
|
58997
|
+
/**
|
|
58998
|
+
* Bind data to effect
|
|
58999
|
+
* @param effect - the effect to bind to
|
|
59000
|
+
*/
|
|
58942
59001
|
bind(effect: Effect): void;
|
|
58943
59002
|
private get _isMixed();
|
|
58944
59003
|
private _injectVertexCode;
|
|
@@ -58952,7 +59011,18 @@ declare class TextureBlock extends NodeMaterialBlock {
|
|
|
58952
59011
|
private _writeOutput;
|
|
58953
59012
|
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
58954
59013
|
protected _dumpPropertiesCode(): string;
|
|
59014
|
+
/**
|
|
59015
|
+
* Serializes the block
|
|
59016
|
+
* @returns the serialized object
|
|
59017
|
+
*/
|
|
58955
59018
|
serialize(): any;
|
|
59019
|
+
/**
|
|
59020
|
+
* Deserializes the block
|
|
59021
|
+
* @param serializationObject - the serialization object
|
|
59022
|
+
* @param scene - the scene
|
|
59023
|
+
* @param rootUrl - the root url
|
|
59024
|
+
* @param urlRewriter - optional url rewriter
|
|
59025
|
+
*/
|
|
58956
59026
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string, urlRewriter?: (url: string) => string): void;
|
|
58957
59027
|
}
|
|
58958
59028
|
|
|
@@ -59047,6 +59117,10 @@ declare abstract class ReflectionTextureBaseBlock extends NodeMaterialBlock {
|
|
|
59047
59117
|
*/
|
|
59048
59118
|
abstract get view(): NodeMaterialConnectionPoint;
|
|
59049
59119
|
protected _getTexture(): Nullable<BaseTexture>;
|
|
59120
|
+
/**
|
|
59121
|
+
* Initialize the block
|
|
59122
|
+
* @param state - the build state
|
|
59123
|
+
*/
|
|
59050
59124
|
initialize(state: NodeMaterialBuildState): void;
|
|
59051
59125
|
private _initShaderSourceAsync;
|
|
59052
59126
|
/**
|
|
@@ -59055,8 +59129,23 @@ declare abstract class ReflectionTextureBaseBlock extends NodeMaterialBlock {
|
|
|
59055
59129
|
* @param additionalFilteringInfo defines additional info to be used when filtering inputs (we might want to skip some non relevant blocks)
|
|
59056
59130
|
*/
|
|
59057
59131
|
autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void;
|
|
59132
|
+
/**
|
|
59133
|
+
* Prepare the list of defines
|
|
59134
|
+
* @param defines - the material defines
|
|
59135
|
+
*/
|
|
59058
59136
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
59137
|
+
/**
|
|
59138
|
+
* Checks if the block is ready
|
|
59139
|
+
* @returns true if ready
|
|
59140
|
+
*/
|
|
59059
59141
|
isReady(): boolean;
|
|
59142
|
+
/**
|
|
59143
|
+
* Bind data to effect
|
|
59144
|
+
* @param effect - the effect to bind to
|
|
59145
|
+
* @param nodeMaterial - the node material
|
|
59146
|
+
* @param mesh - the mesh to bind for
|
|
59147
|
+
* @param _subMesh - the submesh
|
|
59148
|
+
*/
|
|
59060
59149
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh, _subMesh?: SubMesh): void;
|
|
59061
59150
|
/**
|
|
59062
59151
|
* Gets the code to inject in the vertex shader
|
|
@@ -59096,7 +59185,17 @@ declare abstract class ReflectionTextureBaseBlock extends NodeMaterialBlock {
|
|
|
59096
59185
|
writeOutputs(state: NodeMaterialBuildState, varName: string): string;
|
|
59097
59186
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
59098
59187
|
protected _dumpPropertiesCode(): string;
|
|
59188
|
+
/**
|
|
59189
|
+
* Serializes the block
|
|
59190
|
+
* @returns the serialized object
|
|
59191
|
+
*/
|
|
59099
59192
|
serialize(): any;
|
|
59193
|
+
/**
|
|
59194
|
+
* Deserializes the block
|
|
59195
|
+
* @param serializationObject - the serialization object
|
|
59196
|
+
* @param scene - the scene
|
|
59197
|
+
* @param rootUrl - the root url
|
|
59198
|
+
*/
|
|
59100
59199
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
59101
59200
|
}
|
|
59102
59201
|
|
|
@@ -59170,16 +59269,35 @@ declare class CurrentScreenBlock extends NodeMaterialBlock {
|
|
|
59170
59269
|
* @param state defines the state that will be used for the build
|
|
59171
59270
|
*/
|
|
59172
59271
|
initialize(state: NodeMaterialBuildState): void;
|
|
59272
|
+
/** {@inheritDoc} */
|
|
59173
59273
|
get target(): NodeMaterialBlockTargets.Fragment | NodeMaterialBlockTargets.VertexAndFragment;
|
|
59274
|
+
/**
|
|
59275
|
+
* Prepare the list of defines
|
|
59276
|
+
* @param defines - the material defines
|
|
59277
|
+
*/
|
|
59174
59278
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
59279
|
+
/**
|
|
59280
|
+
* Checks if the block is ready
|
|
59281
|
+
* @returns true if ready
|
|
59282
|
+
*/
|
|
59175
59283
|
isReady(): boolean;
|
|
59176
|
-
protected _getMainUvName(
|
|
59284
|
+
protected _getMainUvName(_state: NodeMaterialBuildState): string;
|
|
59177
59285
|
protected _injectVertexCode(state: NodeMaterialBuildState): void;
|
|
59178
59286
|
protected _writeTextureRead(state: NodeMaterialBuildState, vertexMode?: boolean): void;
|
|
59179
59287
|
protected _writeOutput(state: NodeMaterialBuildState, output: NodeMaterialConnectionPoint, swizzle: string, vertexMode?: boolean): void;
|
|
59180
59288
|
protected _emitUvAndSampler(state: NodeMaterialBuildState): void;
|
|
59181
59289
|
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
59290
|
+
/**
|
|
59291
|
+
* Serializes the block
|
|
59292
|
+
* @returns the serialized object
|
|
59293
|
+
*/
|
|
59182
59294
|
serialize(): any;
|
|
59295
|
+
/**
|
|
59296
|
+
* Deserializes the block
|
|
59297
|
+
* @param serializationObject - the serialization object
|
|
59298
|
+
* @param scene - the scene
|
|
59299
|
+
* @param rootUrl - the root url
|
|
59300
|
+
*/
|
|
59183
59301
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
59184
59302
|
}
|
|
59185
59303
|
|
|
@@ -59203,7 +59321,16 @@ declare class ImageSourceBlock extends NodeMaterialBlock {
|
|
|
59203
59321
|
* @param name defines the block name
|
|
59204
59322
|
*/
|
|
59205
59323
|
constructor(name: string);
|
|
59324
|
+
/**
|
|
59325
|
+
* Bind data to effect
|
|
59326
|
+
* @param effect - the effect to bind to
|
|
59327
|
+
* @param _nodeMaterial - the node material
|
|
59328
|
+
*/
|
|
59206
59329
|
bind(effect: Effect, _nodeMaterial: NodeMaterial): void;
|
|
59330
|
+
/**
|
|
59331
|
+
* Checks if the block is ready
|
|
59332
|
+
* @returns true if ready
|
|
59333
|
+
*/
|
|
59207
59334
|
isReady(): boolean;
|
|
59208
59335
|
/**
|
|
59209
59336
|
* Gets the current class name
|
|
@@ -59220,7 +59347,19 @@ declare class ImageSourceBlock extends NodeMaterialBlock {
|
|
|
59220
59347
|
get dimensions(): NodeMaterialConnectionPoint;
|
|
59221
59348
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
59222
59349
|
protected _dumpPropertiesCode(ignoreTexture?: boolean): string;
|
|
59350
|
+
/**
|
|
59351
|
+
* Serializes the block
|
|
59352
|
+
* @param ignoreTexture - whether to skip texture serialization
|
|
59353
|
+
* @returns the serialized object
|
|
59354
|
+
*/
|
|
59223
59355
|
serialize(ignoreTexture?: boolean): any;
|
|
59356
|
+
/**
|
|
59357
|
+
* Deserializes the block
|
|
59358
|
+
* @param serializationObject - the serialization object
|
|
59359
|
+
* @param scene - the scene
|
|
59360
|
+
* @param rootUrl - the root url
|
|
59361
|
+
* @param urlRewriter - optional url rewriter
|
|
59362
|
+
*/
|
|
59224
59363
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string, urlRewriter?: (url: string) => string): void;
|
|
59225
59364
|
}
|
|
59226
59365
|
|
|
@@ -59318,6 +59457,11 @@ declare class PrePassTextureBlock extends NodeMaterialBlock {
|
|
|
59318
59457
|
*/
|
|
59319
59458
|
getClassName(): string;
|
|
59320
59459
|
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
59460
|
+
/**
|
|
59461
|
+
* Bind data to effect
|
|
59462
|
+
* @param effect - defines the effect to bind data to
|
|
59463
|
+
* @param nodeMaterial - defines the node material
|
|
59464
|
+
*/
|
|
59321
59465
|
bind(effect: Effect, nodeMaterial: NodeMaterial): void;
|
|
59322
59466
|
}
|
|
59323
59467
|
|
|
@@ -59412,9 +59556,28 @@ declare class RefractionBlock extends NodeMaterialBlock {
|
|
|
59412
59556
|
*/
|
|
59413
59557
|
get hasTexture(): boolean;
|
|
59414
59558
|
protected _getTexture(): Nullable<BaseTexture>;
|
|
59559
|
+
/**
|
|
59560
|
+
* Auto configure the block based on the material
|
|
59561
|
+
* @param material - the node material
|
|
59562
|
+
* @param additionalFilteringInfo - additional filtering info
|
|
59563
|
+
*/
|
|
59415
59564
|
autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void;
|
|
59565
|
+
/**
|
|
59566
|
+
* Prepare the list of defines
|
|
59567
|
+
* @param defines - the list of defines
|
|
59568
|
+
*/
|
|
59416
59569
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
59570
|
+
/**
|
|
59571
|
+
* Checks if the block is ready
|
|
59572
|
+
* @returns true if ready
|
|
59573
|
+
*/
|
|
59417
59574
|
isReady(): boolean;
|
|
59575
|
+
/**
|
|
59576
|
+
* Bind data to effect
|
|
59577
|
+
* @param effect - the effect to bind to
|
|
59578
|
+
* @param nodeMaterial - the node material
|
|
59579
|
+
* @param mesh - the mesh
|
|
59580
|
+
*/
|
|
59418
59581
|
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
59419
59582
|
/**
|
|
59420
59583
|
* Gets the main code of the block (fragment side)
|
|
@@ -59424,7 +59587,17 @@ declare class RefractionBlock extends NodeMaterialBlock {
|
|
|
59424
59587
|
getCode(state: NodeMaterialBuildState): string;
|
|
59425
59588
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
59426
59589
|
protected _dumpPropertiesCode(): string;
|
|
59590
|
+
/**
|
|
59591
|
+
* Serializes the block
|
|
59592
|
+
* @returns the serialized object
|
|
59593
|
+
*/
|
|
59427
59594
|
serialize(): any;
|
|
59595
|
+
/**
|
|
59596
|
+
* Deserializes the block
|
|
59597
|
+
* @param serializationObject - the serialization object
|
|
59598
|
+
* @param scene - the scene
|
|
59599
|
+
* @param rootUrl - the root URL
|
|
59600
|
+
*/
|
|
59428
59601
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
59429
59602
|
}
|
|
59430
59603
|
|
|
@@ -59491,12 +59664,35 @@ declare class ParticleTextureBlock extends NodeMaterialBlock {
|
|
|
59491
59664
|
* @param state defines the state that will be used for the build
|
|
59492
59665
|
*/
|
|
59493
59666
|
initialize(state: NodeMaterialBuildState): void;
|
|
59667
|
+
/**
|
|
59668
|
+
* Auto configure the block based on the material
|
|
59669
|
+
* @param material - defines the node material
|
|
59670
|
+
* @param additionalFilteringInfo - defines additional filtering info
|
|
59671
|
+
*/
|
|
59494
59672
|
autoConfigure(material: NodeMaterial, additionalFilteringInfo?: (node: NodeMaterialBlock) => boolean): void;
|
|
59673
|
+
/**
|
|
59674
|
+
* Prepare the list of defines
|
|
59675
|
+
* @param defines - defines the list of defines
|
|
59676
|
+
*/
|
|
59495
59677
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
59678
|
+
/**
|
|
59679
|
+
* Checks if the block is ready
|
|
59680
|
+
* @returns true if ready
|
|
59681
|
+
*/
|
|
59496
59682
|
isReady(): boolean;
|
|
59497
59683
|
private _writeOutput;
|
|
59498
59684
|
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
59685
|
+
/**
|
|
59686
|
+
* Serializes the block
|
|
59687
|
+
* @returns the serialized object
|
|
59688
|
+
*/
|
|
59499
59689
|
serialize(): any;
|
|
59690
|
+
/**
|
|
59691
|
+
* Deserializes the block
|
|
59692
|
+
* @param serializationObject - defines the serialized object
|
|
59693
|
+
* @param scene - defines the scene
|
|
59694
|
+
* @param rootUrl - defines the root URL
|
|
59695
|
+
*/
|
|
59500
59696
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
59501
59697
|
}
|
|
59502
59698
|
|
|
@@ -59625,8 +59821,20 @@ declare class TriPlanarBlock extends NodeMaterialBlock {
|
|
|
59625
59821
|
* Gets the level output component
|
|
59626
59822
|
*/
|
|
59627
59823
|
get level(): NodeMaterialConnectionPoint;
|
|
59824
|
+
/**
|
|
59825
|
+
* Prepares the defines for the block
|
|
59826
|
+
* @param defines - the defines to prepare
|
|
59827
|
+
*/
|
|
59628
59828
|
prepareDefines(defines: NodeMaterialDefines): void;
|
|
59829
|
+
/**
|
|
59830
|
+
* Checks if the block is ready
|
|
59831
|
+
* @returns true if the block is ready
|
|
59832
|
+
*/
|
|
59629
59833
|
isReady(): boolean;
|
|
59834
|
+
/**
|
|
59835
|
+
* Bind the block
|
|
59836
|
+
* @param effect - the effect to bind
|
|
59837
|
+
*/
|
|
59630
59838
|
bind(effect: Effect): void;
|
|
59631
59839
|
private _samplerFunc;
|
|
59632
59840
|
private _generateTextureSample;
|
|
@@ -59635,7 +59843,17 @@ declare class TriPlanarBlock extends NodeMaterialBlock {
|
|
|
59635
59843
|
private _writeOutput;
|
|
59636
59844
|
protected _buildBlock(state: NodeMaterialBuildState): this;
|
|
59637
59845
|
protected _dumpPropertiesCode(): string;
|
|
59846
|
+
/**
|
|
59847
|
+
* Serializes the block
|
|
59848
|
+
* @returns the serialized object
|
|
59849
|
+
*/
|
|
59638
59850
|
serialize(): any;
|
|
59851
|
+
/**
|
|
59852
|
+
* Deserializes the block from a serialization object
|
|
59853
|
+
* @param serializationObject - the object to deserialize from
|
|
59854
|
+
* @param scene - the current scene
|
|
59855
|
+
* @param rootUrl - the root URL for loading
|
|
59856
|
+
*/
|
|
59639
59857
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
59640
59858
|
}
|
|
59641
59859
|
|
|
@@ -59849,6 +60067,7 @@ declare class NodeMaterialDefines extends NodeMaterialDefines_base {
|
|
|
59849
60067
|
MORPHTARGETS_UV: boolean;
|
|
59850
60068
|
/** Morph target uv2 */
|
|
59851
60069
|
MORPHTARGETS_UV2: boolean;
|
|
60070
|
+
/** Morph target color support */
|
|
59852
60071
|
MORPHTARGETS_COLOR: boolean;
|
|
59853
60072
|
/** Morph target support positions */
|
|
59854
60073
|
MORPHTARGETTEXTURE_HASPOSITIONS: boolean;
|
|
@@ -59860,6 +60079,7 @@ declare class NodeMaterialDefines extends NodeMaterialDefines_base {
|
|
|
59860
60079
|
MORPHTARGETTEXTURE_HASUVS: boolean;
|
|
59861
60080
|
/** Morph target support uv2s */
|
|
59862
60081
|
MORPHTARGETTEXTURE_HASUV2S: boolean;
|
|
60082
|
+
/** Morph target texture has colors */
|
|
59863
60083
|
MORPHTARGETTEXTURE_HASCOLORS: boolean;
|
|
59864
60084
|
/** Number of morph influencers */
|
|
59865
60085
|
NUM_MORPH_INFLUENCERS: number;
|
|
@@ -59871,8 +60091,11 @@ declare class NodeMaterialDefines extends NodeMaterialDefines_base {
|
|
|
59871
60091
|
CAMERA_ORTHOGRAPHIC: boolean;
|
|
59872
60092
|
/** Camera is perspective */
|
|
59873
60093
|
CAMERA_PERSPECTIVE: boolean;
|
|
60094
|
+
/** Area light support */
|
|
59874
60095
|
AREALIGHTSUPPORTED: boolean;
|
|
60096
|
+
/** Area light no roughness */
|
|
59875
60097
|
AREALIGHTNOROUGHTNESS: boolean;
|
|
60098
|
+
/** Position W as varying */
|
|
59876
60099
|
POSITIONW_AS_VARYING: boolean;
|
|
59877
60100
|
/**
|
|
59878
60101
|
* Creates a new NodeMaterialDefines
|
|
@@ -59965,6 +60188,10 @@ declare class NodeMaterial extends NodeMaterialBase {
|
|
|
59965
60188
|
get buildIsInProgress(): boolean;
|
|
59966
60189
|
/** @internal */
|
|
59967
60190
|
_useAdditionalColor: boolean;
|
|
60191
|
+
/**
|
|
60192
|
+
* Sets whether glow mode is enabled
|
|
60193
|
+
* @param value - the value to set
|
|
60194
|
+
*/
|
|
59968
60195
|
set _glowModeEnabled(value: boolean);
|
|
59969
60196
|
/** Get the inspector from bundle or global
|
|
59970
60197
|
* @returns the global NME
|
|
@@ -60097,6 +60324,10 @@ declare class NodeMaterial extends NodeMaterialBase {
|
|
|
60097
60324
|
* Gets or sets a boolean indicating that alpha blending must be enabled no matter what alpha value or alpha channel of the FragmentBlock are
|
|
60098
60325
|
*/
|
|
60099
60326
|
forceAlphaBlending: boolean;
|
|
60327
|
+
/**
|
|
60328
|
+
* Gets whether the glow layer is supported
|
|
60329
|
+
* @returns true if the glow layer is supported
|
|
60330
|
+
*/
|
|
60100
60331
|
get _supportGlowLayer(): boolean;
|
|
60101
60332
|
/**
|
|
60102
60333
|
* Specifies if the material will require alpha blending
|
|
@@ -68589,15 +68820,19 @@ declare class Animation {
|
|
|
68589
68820
|
matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number, result?: Matrix): Matrix;
|
|
68590
68821
|
/**
|
|
68591
68822
|
* Makes a copy of the animation
|
|
68823
|
+
* @param cloneKeys Whether to clone the keys or not (default is false, so the keys are not cloned). Note that the key array itself is always cloned (that is, a new array is created),
|
|
68824
|
+
* but the individual keys inside the array are only cloned if this parameter is true.
|
|
68592
68825
|
* @returns Cloned animation
|
|
68593
68826
|
*/
|
|
68594
|
-
clone(): Animation;
|
|
68827
|
+
clone(cloneKeys?: boolean): Animation;
|
|
68595
68828
|
/**
|
|
68596
68829
|
* Sets the key frames of the animation
|
|
68597
68830
|
* @param values The animation key frames to set
|
|
68598
68831
|
* @param dontClone Whether to clone the keys or not (default is false, so the array of keys is cloned)
|
|
68832
|
+
* @param cloneKeys Whether to clone the individual keys inside the array or not (default is false). If true, each key object inside the array will be cloned, and the fields
|
|
68833
|
+
* that have a clone() method will be cloned by calling that method.
|
|
68599
68834
|
*/
|
|
68600
|
-
setKeys(values: Array<IAnimationKey>, dontClone?: boolean): void;
|
|
68835
|
+
setKeys(values: Array<IAnimationKey>, dontClone?: boolean, cloneKeys?: boolean): void;
|
|
68601
68836
|
/**
|
|
68602
68837
|
* Creates a key for the frame passed as a parameter and adds it to the animation IF a key doesn't already exist for that frame
|
|
68603
68838
|
* @param frame Frame number
|
|
@@ -72312,6 +72547,9 @@ declare class InputBlock extends NodeMaterialBlock {
|
|
|
72312
72547
|
*/
|
|
72313
72548
|
animate(scene: Scene): void;
|
|
72314
72549
|
private _emitDefine;
|
|
72550
|
+
/**
|
|
72551
|
+
* Initialize the block
|
|
72552
|
+
*/
|
|
72315
72553
|
initialize(): void;
|
|
72316
72554
|
/**
|
|
72317
72555
|
* Set the input block to its default value (based on its type)
|
|
@@ -72331,8 +72569,21 @@ declare class InputBlock extends NodeMaterialBlock {
|
|
|
72331
72569
|
_transmit(effect: Effect, scene: Scene, material: NodeMaterial): void;
|
|
72332
72570
|
protected _buildBlock(state: NodeMaterialBuildState): void;
|
|
72333
72571
|
protected _dumpPropertiesCode(): string;
|
|
72572
|
+
/**
|
|
72573
|
+
* Releases the resources held by the block
|
|
72574
|
+
*/
|
|
72334
72575
|
dispose(): void;
|
|
72576
|
+
/**
|
|
72577
|
+
* Serializes the block
|
|
72578
|
+
* @returns the serialized object
|
|
72579
|
+
*/
|
|
72335
72580
|
serialize(): any;
|
|
72581
|
+
/**
|
|
72582
|
+
* Deserializes the block
|
|
72583
|
+
* @param serializationObject - defines the serialized object
|
|
72584
|
+
* @param scene - defines the scene
|
|
72585
|
+
* @param rootUrl - defines the root URL
|
|
72586
|
+
*/
|
|
72336
72587
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
72337
72588
|
}
|
|
72338
72589
|
|
|
@@ -73155,9 +73406,6 @@ declare class NodeMaterialBlock {
|
|
|
73155
73406
|
* Connect current block with another block
|
|
73156
73407
|
* @param other defines the block to connect with
|
|
73157
73408
|
* @param options define the various options to help pick the right connections
|
|
73158
|
-
* @param options.input
|
|
73159
|
-
* @param options.output
|
|
73160
|
-
* @param options.outputSwizzle
|
|
73161
73409
|
* @returns the current block
|
|
73162
73410
|
*/
|
|
73163
73411
|
connectTo(other: NodeMaterialBlock, options?: {
|