|
@@ -486,7 +486,7 @@ declare module "babylonjs/Maths/math" {
|
|
*/
|
|
*/
|
|
static FromHexString(hex: string): Color3;
|
|
static FromHexString(hex: string): Color3;
|
|
/**
|
|
/**
|
|
- * Creates a new Vector3 from the starting index of the given array
|
|
|
|
|
|
+ * Creates a new Color3 from the starting index of the given array
|
|
* @param array defines the source array
|
|
* @param array defines the source array
|
|
* @param offset defines an offset in the source array
|
|
* @param offset defines an offset in the source array
|
|
* @returns a new Color3 object
|
|
* @returns a new Color3 object
|
|
@@ -6350,9 +6350,9 @@ declare module "babylonjs/Materials/Textures/internalTexture" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_files: Nullable<string[]>;
|
|
_files: Nullable<string[]>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _workingCanvas: HTMLCanvasElement;
|
|
|
|
|
|
+ _workingCanvas: Nullable<HTMLCanvasElement>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _workingContext: CanvasRenderingContext2D;
|
|
|
|
|
|
+ _workingContext: Nullable<CanvasRenderingContext2D>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_framebuffer: Nullable<WebGLFramebuffer>;
|
|
_framebuffer: Nullable<WebGLFramebuffer>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -6394,11 +6394,11 @@ declare module "babylonjs/Materials/Textures/internalTexture" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_depthStencilTextureArray: Nullable<WebGLTexture>;
|
|
_depthStencilTextureArray: Nullable<WebGLTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureHigh: BaseTexture;
|
|
|
|
|
|
+ _lodTextureHigh: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureMid: BaseTexture;
|
|
|
|
|
|
+ _lodTextureMid: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureLow: BaseTexture;
|
|
|
|
|
|
+ _lodTextureLow: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isRGBD: boolean;
|
|
_isRGBD: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -7580,7 +7580,7 @@ declare module "babylonjs/Meshes/transformNode" {
|
|
*/
|
|
*/
|
|
reIntegrateRotationIntoRotationQuaternion: boolean;
|
|
reIntegrateRotationIntoRotationQuaternion: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _poseMatrix: Matrix;
|
|
|
|
|
|
+ _poseMatrix: Nullable<Matrix>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_localMatrix: Matrix;
|
|
_localMatrix: Matrix;
|
|
private _usePivotMatrix;
|
|
private _usePivotMatrix;
|
|
@@ -18488,7 +18488,7 @@ declare module "babylonjs/Materials/Textures/texture" {
|
|
* List of inspectable custom properties (used by the Inspector)
|
|
* List of inspectable custom properties (used by the Inspector)
|
|
* @see https://doc.babylonjs.com/how_to/debug_layer#extensibility
|
|
* @see https://doc.babylonjs.com/how_to/debug_layer#extensibility
|
|
*/
|
|
*/
|
|
- inspectableCustomProperties: IInspectable[];
|
|
|
|
|
|
+ inspectableCustomProperties: Nullable<IInspectable[]>;
|
|
private _noMipmap;
|
|
private _noMipmap;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_invertY: boolean;
|
|
_invertY: boolean;
|
|
@@ -18976,7 +18976,7 @@ declare module "babylonjs/Animations/animatable" {
|
|
/**
|
|
/**
|
|
* Gets the root Animatable used to synchronize and normalize animations
|
|
* Gets the root Animatable used to synchronize and normalize animations
|
|
*/
|
|
*/
|
|
- readonly syncRoot: Animatable;
|
|
|
|
|
|
+ readonly syncRoot: Nullable<Animatable>;
|
|
/**
|
|
/**
|
|
* Gets the current frame of the first RuntimeAnimation
|
|
* Gets the current frame of the first RuntimeAnimation
|
|
* Used to synchronize Animatables
|
|
* Used to synchronize Animatables
|
|
@@ -22246,15 +22246,15 @@ declare module "babylonjs/Materials/material" {
|
|
/**
|
|
/**
|
|
* Callback triggered when the material is compiled
|
|
* Callback triggered when the material is compiled
|
|
*/
|
|
*/
|
|
- onCompiled: (effect: Effect) => void;
|
|
|
|
|
|
+ onCompiled: Nullable<(effect: Effect) => void>;
|
|
/**
|
|
/**
|
|
* Callback triggered when an error occurs
|
|
* Callback triggered when an error occurs
|
|
*/
|
|
*/
|
|
- onError: (effect: Effect, errors: string) => void;
|
|
|
|
|
|
+ onError: Nullable<(effect: Effect, errors: string) => void>;
|
|
/**
|
|
/**
|
|
* Callback triggered to get the render target textures
|
|
* Callback triggered to get the render target textures
|
|
*/
|
|
*/
|
|
- getRenderTargetTextures: () => SmartArray<RenderTargetTexture>;
|
|
|
|
|
|
+ getRenderTargetTextures: Nullable<() => SmartArray<RenderTargetTexture>>;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating that current material needs to register RTT
|
|
* Gets a boolean indicating that current material needs to register RTT
|
|
*/
|
|
*/
|
|
@@ -22270,7 +22270,7 @@ declare module "babylonjs/Materials/material" {
|
|
/**
|
|
/**
|
|
* Stores the animations for the material
|
|
* Stores the animations for the material
|
|
*/
|
|
*/
|
|
- animations: Array<Animation>;
|
|
|
|
|
|
+ animations: Nullable<Array<Animation>>;
|
|
/**
|
|
/**
|
|
* An event triggered when the material is disposed
|
|
* An event triggered when the material is disposed
|
|
*/
|
|
*/
|
|
@@ -22730,7 +22730,7 @@ declare module "babylonjs/Meshes/subMesh" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_trianglePlanes: Plane[];
|
|
_trianglePlanes: Plane[];
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lastColliderTransformMatrix: Matrix;
|
|
|
|
|
|
+ _lastColliderTransformMatrix: Nullable<Matrix>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_renderId: number;
|
|
_renderId: number;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -24582,7 +24582,7 @@ declare module "babylonjs/Meshes/abstractMesh" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isActive: boolean;
|
|
_isActive: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _renderingGroup: RenderingGroup;
|
|
|
|
|
|
+ _renderingGroup: Nullable<RenderingGroup>;
|
|
/**
|
|
/**
|
|
* Gets or sets mesh visibility between 0 and 1 (default is 1)
|
|
* Gets or sets mesh visibility between 0 and 1 (default is 1)
|
|
*/
|
|
*/
|
|
@@ -24734,7 +24734,7 @@ declare module "babylonjs/Meshes/abstractMesh" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
readonly _positions: Nullable<Vector3[]>;
|
|
readonly _positions: Nullable<Vector3[]>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _waitingActions: any;
|
|
|
|
|
|
+ _waitingActions: Nullable<any>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_waitingFreezeWorldMatrix: Nullable<boolean>;
|
|
_waitingFreezeWorldMatrix: Nullable<boolean>;
|
|
private _skeleton;
|
|
private _skeleton;
|
|
@@ -25015,7 +25015,7 @@ declare module "babylonjs/Meshes/abstractMesh" {
|
|
* Gets Collider object used to compute collisions (not physics)
|
|
* Gets Collider object used to compute collisions (not physics)
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
*/
|
|
*/
|
|
- readonly collider: Collider;
|
|
|
|
|
|
+ readonly collider: Nullable<Collider>;
|
|
/**
|
|
/**
|
|
* Move the mesh using collision engine
|
|
* Move the mesh using collision engine
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
@@ -25481,7 +25481,7 @@ declare module "babylonjs/node" {
|
|
/**
|
|
/**
|
|
* Callback raised when the node is ready to be used
|
|
* Callback raised when the node is ready to be used
|
|
*/
|
|
*/
|
|
- onReady: (node: Node) => void;
|
|
|
|
|
|
+ onReady: Nullable<(node: Node) => void>;
|
|
private _isEnabled;
|
|
private _isEnabled;
|
|
private _isParentEnabled;
|
|
private _isParentEnabled;
|
|
private _isReady;
|
|
private _isReady;
|
|
@@ -28803,7 +28803,7 @@ declare module "babylonjs/Engines/engine" {
|
|
* @param indexParameters defines an object containing the index values to use to compile shaders (like the maximum number of simultaneous lights)
|
|
* @param indexParameters defines an object containing the index values to use to compile shaders (like the maximum number of simultaneous lights)
|
|
* @returns the new Effect
|
|
* @returns the new Effect
|
|
*/
|
|
*/
|
|
- createEffect(baseName: any, attributesNamesOrOptions: string[] | EffectCreationOptions, uniformsNamesOrEngine: string[] | Engine, samplers?: string[], defines?: string, fallbacks?: EffectFallbacks, onCompiled?: (effect: Effect) => void, onError?: (effect: Effect, errors: string) => void, indexParameters?: any): Effect;
|
|
|
|
|
|
+ createEffect(baseName: any, attributesNamesOrOptions: string[] | EffectCreationOptions, uniformsNamesOrEngine: string[] | Engine, samplers?: string[], defines?: string, fallbacks?: EffectFallbacks, onCompiled?: Nullable<(effect: Effect) => void>, onError?: Nullable<(effect: Effect, errors: string) => void>, indexParameters?: any): Effect;
|
|
private _compileShader;
|
|
private _compileShader;
|
|
private _compileRawShader;
|
|
private _compileRawShader;
|
|
/**
|
|
/**
|
|
@@ -31354,7 +31354,7 @@ declare module "babylonjs/Misc/tools" {
|
|
/**
|
|
/**
|
|
* Array of animations
|
|
* Array of animations
|
|
*/
|
|
*/
|
|
- animations: Array<Animation>;
|
|
|
|
|
|
+ animations: Nullable<Array<Animation>>;
|
|
}
|
|
}
|
|
/** Interface used by value gradients (color, factor, ...) */
|
|
/** Interface used by value gradients (color, factor, ...) */
|
|
export interface IValueGradient {
|
|
export interface IValueGradient {
|
|
@@ -46579,11 +46579,11 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
/**
|
|
/**
|
|
* AKA Diffuse Texture in standard nomenclature.
|
|
* AKA Diffuse Texture in standard nomenclature.
|
|
*/
|
|
*/
|
|
- protected _albedoTexture: BaseTexture;
|
|
|
|
|
|
+ protected _albedoTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Occlusion Texture in other nomenclature.
|
|
* AKA Occlusion Texture in other nomenclature.
|
|
*/
|
|
*/
|
|
- protected _ambientTexture: BaseTexture;
|
|
|
|
|
|
+ protected _ambientTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Occlusion Texture Intensity in other nomenclature.
|
|
* AKA Occlusion Texture Intensity in other nomenclature.
|
|
*/
|
|
*/
|
|
@@ -46597,23 +46597,23 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
/**
|
|
/**
|
|
* Stores the alpha values in a texture.
|
|
* Stores the alpha values in a texture.
|
|
*/
|
|
*/
|
|
- protected _opacityTexture: BaseTexture;
|
|
|
|
|
|
+ protected _opacityTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the reflection values in a texture.
|
|
* Stores the reflection values in a texture.
|
|
*/
|
|
*/
|
|
- protected _reflectionTexture: BaseTexture;
|
|
|
|
|
|
+ protected _reflectionTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the emissive values in a texture.
|
|
* Stores the emissive values in a texture.
|
|
*/
|
|
*/
|
|
- protected _emissiveTexture: BaseTexture;
|
|
|
|
|
|
+ protected _emissiveTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Specular texture in other nomenclature.
|
|
* AKA Specular texture in other nomenclature.
|
|
*/
|
|
*/
|
|
- protected _reflectivityTexture: BaseTexture;
|
|
|
|
|
|
+ protected _reflectivityTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Used to switch from specular/glossiness to metallic/roughness workflow.
|
|
* Used to switch from specular/glossiness to metallic/roughness workflow.
|
|
*/
|
|
*/
|
|
- protected _metallicTexture: BaseTexture;
|
|
|
|
|
|
+ protected _metallicTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Specifies the metallic scalar of the metallic/roughness workflow.
|
|
* Specifies the metallic scalar of the metallic/roughness workflow.
|
|
* Can also be used to scale the metalness values of the metallic texture.
|
|
* Can also be used to scale the metalness values of the metallic texture.
|
|
@@ -46628,15 +46628,15 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
* Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.
|
|
* Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.
|
|
* Gray Scale represents roughness in metallic mode and glossiness in specular mode.
|
|
* Gray Scale represents roughness in metallic mode and glossiness in specular mode.
|
|
*/
|
|
*/
|
|
- protected _microSurfaceTexture: BaseTexture;
|
|
|
|
|
|
+ protected _microSurfaceTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores surface normal data used to displace a mesh in a texture.
|
|
* Stores surface normal data used to displace a mesh in a texture.
|
|
*/
|
|
*/
|
|
- protected _bumpTexture: BaseTexture;
|
|
|
|
|
|
+ protected _bumpTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the pre-calculated light information of a mesh in a texture.
|
|
* Stores the pre-calculated light information of a mesh in a texture.
|
|
*/
|
|
*/
|
|
- protected _lightmapTexture: BaseTexture;
|
|
|
|
|
|
+ protected _lightmapTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* The color of a material in ambient lighting.
|
|
* The color of a material in ambient lighting.
|
|
*/
|
|
*/
|
|
@@ -46939,7 +46939,7 @@ declare module "babylonjs/Materials/PBR/pbrBaseMaterial" {
|
|
/**
|
|
/**
|
|
* Gets the texture used for the alpha test.
|
|
* Gets the texture used for the alpha test.
|
|
*/
|
|
*/
|
|
- getAlphaTestTexture(): BaseTexture;
|
|
|
|
|
|
+ getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Specifies that the submesh is ready to be used.
|
|
* Specifies that the submesh is ready to be used.
|
|
* @param mesh - BJS mesh.
|
|
* @param mesh - BJS mesh.
|
|
@@ -59976,7 +59976,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
static FromHexString(hex: string): Color3;
|
|
static FromHexString(hex: string): Color3;
|
|
/**
|
|
/**
|
|
- * Creates a new Vector3 from the starting index of the given array
|
|
|
|
|
|
+ * Creates a new Color3 from the starting index of the given array
|
|
* @param array defines the source array
|
|
* @param array defines the source array
|
|
* @param offset defines an offset in the source array
|
|
* @param offset defines an offset in the source array
|
|
* @returns a new Color3 object
|
|
* @returns a new Color3 object
|
|
@@ -65817,9 +65817,9 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_files: Nullable<string[]>;
|
|
_files: Nullable<string[]>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _workingCanvas: HTMLCanvasElement;
|
|
|
|
|
|
+ _workingCanvas: Nullable<HTMLCanvasElement>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _workingContext: CanvasRenderingContext2D;
|
|
|
|
|
|
+ _workingContext: Nullable<CanvasRenderingContext2D>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_framebuffer: Nullable<WebGLFramebuffer>;
|
|
_framebuffer: Nullable<WebGLFramebuffer>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -65861,11 +65861,11 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_depthStencilTextureArray: Nullable<WebGLTexture>;
|
|
_depthStencilTextureArray: Nullable<WebGLTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureHigh: BaseTexture;
|
|
|
|
|
|
+ _lodTextureHigh: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureMid: BaseTexture;
|
|
|
|
|
|
+ _lodTextureMid: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lodTextureLow: BaseTexture;
|
|
|
|
|
|
+ _lodTextureLow: Nullable<BaseTexture>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isRGBD: boolean;
|
|
_isRGBD: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -67017,7 +67017,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
reIntegrateRotationIntoRotationQuaternion: boolean;
|
|
reIntegrateRotationIntoRotationQuaternion: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _poseMatrix: Matrix;
|
|
|
|
|
|
+ _poseMatrix: Nullable<Matrix>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_localMatrix: Matrix;
|
|
_localMatrix: Matrix;
|
|
private _usePivotMatrix;
|
|
private _usePivotMatrix;
|
|
@@ -77501,7 +77501,7 @@ declare module BABYLON {
|
|
* List of inspectable custom properties (used by the Inspector)
|
|
* List of inspectable custom properties (used by the Inspector)
|
|
* @see https://doc.babylonjs.com/how_to/debug_layer#extensibility
|
|
* @see https://doc.babylonjs.com/how_to/debug_layer#extensibility
|
|
*/
|
|
*/
|
|
- inspectableCustomProperties: IInspectable[];
|
|
|
|
|
|
+ inspectableCustomProperties: Nullable<IInspectable[]>;
|
|
private _noMipmap;
|
|
private _noMipmap;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_invertY: boolean;
|
|
_invertY: boolean;
|
|
@@ -77977,7 +77977,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Gets the root Animatable used to synchronize and normalize animations
|
|
* Gets the root Animatable used to synchronize and normalize animations
|
|
*/
|
|
*/
|
|
- readonly syncRoot: Animatable;
|
|
|
|
|
|
+ readonly syncRoot: Nullable<Animatable>;
|
|
/**
|
|
/**
|
|
* Gets the current frame of the first RuntimeAnimation
|
|
* Gets the current frame of the first RuntimeAnimation
|
|
* Used to synchronize Animatables
|
|
* Used to synchronize Animatables
|
|
@@ -81161,15 +81161,15 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Callback triggered when the material is compiled
|
|
* Callback triggered when the material is compiled
|
|
*/
|
|
*/
|
|
- onCompiled: (effect: Effect) => void;
|
|
|
|
|
|
+ onCompiled: Nullable<(effect: Effect) => void>;
|
|
/**
|
|
/**
|
|
* Callback triggered when an error occurs
|
|
* Callback triggered when an error occurs
|
|
*/
|
|
*/
|
|
- onError: (effect: Effect, errors: string) => void;
|
|
|
|
|
|
+ onError: Nullable<(effect: Effect, errors: string) => void>;
|
|
/**
|
|
/**
|
|
* Callback triggered to get the render target textures
|
|
* Callback triggered to get the render target textures
|
|
*/
|
|
*/
|
|
- getRenderTargetTextures: () => SmartArray<RenderTargetTexture>;
|
|
|
|
|
|
+ getRenderTargetTextures: Nullable<() => SmartArray<RenderTargetTexture>>;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating that current material needs to register RTT
|
|
* Gets a boolean indicating that current material needs to register RTT
|
|
*/
|
|
*/
|
|
@@ -81185,7 +81185,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Stores the animations for the material
|
|
* Stores the animations for the material
|
|
*/
|
|
*/
|
|
- animations: Array<Animation>;
|
|
|
|
|
|
+ animations: Nullable<Array<Animation>>;
|
|
/**
|
|
/**
|
|
* An event triggered when the material is disposed
|
|
* An event triggered when the material is disposed
|
|
*/
|
|
*/
|
|
@@ -81632,7 +81632,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_trianglePlanes: Plane[];
|
|
_trianglePlanes: Plane[];
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _lastColliderTransformMatrix: Matrix;
|
|
|
|
|
|
+ _lastColliderTransformMatrix: Nullable<Matrix>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_renderId: number;
|
|
_renderId: number;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
@@ -83436,7 +83436,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_isActive: boolean;
|
|
_isActive: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _renderingGroup: RenderingGroup;
|
|
|
|
|
|
+ _renderingGroup: Nullable<RenderingGroup>;
|
|
/**
|
|
/**
|
|
* Gets or sets mesh visibility between 0 and 1 (default is 1)
|
|
* Gets or sets mesh visibility between 0 and 1 (default is 1)
|
|
*/
|
|
*/
|
|
@@ -83588,7 +83588,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
readonly _positions: Nullable<Vector3[]>;
|
|
readonly _positions: Nullable<Vector3[]>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _waitingActions: any;
|
|
|
|
|
|
+ _waitingActions: Nullable<any>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_waitingFreezeWorldMatrix: Nullable<boolean>;
|
|
_waitingFreezeWorldMatrix: Nullable<boolean>;
|
|
private _skeleton;
|
|
private _skeleton;
|
|
@@ -83869,7 +83869,7 @@ declare module BABYLON {
|
|
* Gets Collider object used to compute collisions (not physics)
|
|
* Gets Collider object used to compute collisions (not physics)
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
*/
|
|
*/
|
|
- readonly collider: Collider;
|
|
|
|
|
|
+ readonly collider: Nullable<Collider>;
|
|
/**
|
|
/**
|
|
* Move the mesh using collision engine
|
|
* Move the mesh using collision engine
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
* @see http://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity
|
|
@@ -84313,7 +84313,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Callback raised when the node is ready to be used
|
|
* Callback raised when the node is ready to be used
|
|
*/
|
|
*/
|
|
- onReady: (node: Node) => void;
|
|
|
|
|
|
+ onReady: Nullable<(node: Node) => void>;
|
|
private _isEnabled;
|
|
private _isEnabled;
|
|
private _isParentEnabled;
|
|
private _isParentEnabled;
|
|
private _isReady;
|
|
private _isReady;
|
|
@@ -87573,7 +87573,7 @@ declare module BABYLON {
|
|
* @param indexParameters defines an object containing the index values to use to compile shaders (like the maximum number of simultaneous lights)
|
|
* @param indexParameters defines an object containing the index values to use to compile shaders (like the maximum number of simultaneous lights)
|
|
* @returns the new Effect
|
|
* @returns the new Effect
|
|
*/
|
|
*/
|
|
- createEffect(baseName: any, attributesNamesOrOptions: string[] | EffectCreationOptions, uniformsNamesOrEngine: string[] | Engine, samplers?: string[], defines?: string, fallbacks?: EffectFallbacks, onCompiled?: (effect: Effect) => void, onError?: (effect: Effect, errors: string) => void, indexParameters?: any): Effect;
|
|
|
|
|
|
+ createEffect(baseName: any, attributesNamesOrOptions: string[] | EffectCreationOptions, uniformsNamesOrEngine: string[] | Engine, samplers?: string[], defines?: string, fallbacks?: EffectFallbacks, onCompiled?: Nullable<(effect: Effect) => void>, onError?: Nullable<(effect: Effect, errors: string) => void>, indexParameters?: any): Effect;
|
|
private _compileShader;
|
|
private _compileShader;
|
|
private _compileRawShader;
|
|
private _compileRawShader;
|
|
/**
|
|
/**
|
|
@@ -90079,7 +90079,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Array of animations
|
|
* Array of animations
|
|
*/
|
|
*/
|
|
- animations: Array<Animation>;
|
|
|
|
|
|
+ animations: Nullable<Array<Animation>>;
|
|
}
|
|
}
|
|
/** Interface used by value gradients (color, factor, ...) */
|
|
/** Interface used by value gradients (color, factor, ...) */
|
|
export interface IValueGradient {
|
|
export interface IValueGradient {
|
|
@@ -104259,11 +104259,11 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* AKA Diffuse Texture in standard nomenclature.
|
|
* AKA Diffuse Texture in standard nomenclature.
|
|
*/
|
|
*/
|
|
- protected _albedoTexture: BaseTexture;
|
|
|
|
|
|
+ protected _albedoTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Occlusion Texture in other nomenclature.
|
|
* AKA Occlusion Texture in other nomenclature.
|
|
*/
|
|
*/
|
|
- protected _ambientTexture: BaseTexture;
|
|
|
|
|
|
+ protected _ambientTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Occlusion Texture Intensity in other nomenclature.
|
|
* AKA Occlusion Texture Intensity in other nomenclature.
|
|
*/
|
|
*/
|
|
@@ -104277,23 +104277,23 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Stores the alpha values in a texture.
|
|
* Stores the alpha values in a texture.
|
|
*/
|
|
*/
|
|
- protected _opacityTexture: BaseTexture;
|
|
|
|
|
|
+ protected _opacityTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the reflection values in a texture.
|
|
* Stores the reflection values in a texture.
|
|
*/
|
|
*/
|
|
- protected _reflectionTexture: BaseTexture;
|
|
|
|
|
|
+ protected _reflectionTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the emissive values in a texture.
|
|
* Stores the emissive values in a texture.
|
|
*/
|
|
*/
|
|
- protected _emissiveTexture: BaseTexture;
|
|
|
|
|
|
+ protected _emissiveTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* AKA Specular texture in other nomenclature.
|
|
* AKA Specular texture in other nomenclature.
|
|
*/
|
|
*/
|
|
- protected _reflectivityTexture: BaseTexture;
|
|
|
|
|
|
+ protected _reflectivityTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Used to switch from specular/glossiness to metallic/roughness workflow.
|
|
* Used to switch from specular/glossiness to metallic/roughness workflow.
|
|
*/
|
|
*/
|
|
- protected _metallicTexture: BaseTexture;
|
|
|
|
|
|
+ protected _metallicTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Specifies the metallic scalar of the metallic/roughness workflow.
|
|
* Specifies the metallic scalar of the metallic/roughness workflow.
|
|
* Can also be used to scale the metalness values of the metallic texture.
|
|
* Can also be used to scale the metalness values of the metallic texture.
|
|
@@ -104308,15 +104308,15 @@ declare module BABYLON {
|
|
* Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.
|
|
* Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.
|
|
* Gray Scale represents roughness in metallic mode and glossiness in specular mode.
|
|
* Gray Scale represents roughness in metallic mode and glossiness in specular mode.
|
|
*/
|
|
*/
|
|
- protected _microSurfaceTexture: BaseTexture;
|
|
|
|
|
|
+ protected _microSurfaceTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores surface normal data used to displace a mesh in a texture.
|
|
* Stores surface normal data used to displace a mesh in a texture.
|
|
*/
|
|
*/
|
|
- protected _bumpTexture: BaseTexture;
|
|
|
|
|
|
+ protected _bumpTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Stores the pre-calculated light information of a mesh in a texture.
|
|
* Stores the pre-calculated light information of a mesh in a texture.
|
|
*/
|
|
*/
|
|
- protected _lightmapTexture: BaseTexture;
|
|
|
|
|
|
+ protected _lightmapTexture: Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* The color of a material in ambient lighting.
|
|
* The color of a material in ambient lighting.
|
|
*/
|
|
*/
|
|
@@ -104619,7 +104619,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Gets the texture used for the alpha test.
|
|
* Gets the texture used for the alpha test.
|
|
*/
|
|
*/
|
|
- getAlphaTestTexture(): BaseTexture;
|
|
|
|
|
|
+ getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
/**
|
|
/**
|
|
* Specifies that the submesh is ready to be used.
|
|
* Specifies that the submesh is ready to be used.
|
|
* @param mesh - BJS mesh.
|
|
* @param mesh - BJS mesh.
|