|
@@ -14114,10 +14114,17 @@ declare module "babylonjs/Meshes/transformNode" {
|
|
*/
|
|
*/
|
|
getPivotMatrix(): Matrix;
|
|
getPivotMatrix(): Matrix;
|
|
/**
|
|
/**
|
|
- * Prevents the World matrix to be computed any longer.
|
|
|
|
|
|
+ * Instantiate (when possible) or clone that node with its hierarchy
|
|
|
|
+ * @param newParent defines the new parent to use for the instance (or clone)
|
|
|
|
+ * @returns an instance (or a clone) of the current node with its hiearchy
|
|
|
|
+ */
|
|
|
|
+ instantiateHierarychy(newParent?: Nullable<TransformNode>): Nullable<TransformNode>;
|
|
|
|
+ /**
|
|
|
|
+ * Prevents the World matrix to be computed any longer
|
|
|
|
+ * @param newWorldMatrix defines an optional matrix to use as world matrix
|
|
* @returns the TransformNode.
|
|
* @returns the TransformNode.
|
|
*/
|
|
*/
|
|
- freezeWorldMatrix(): TransformNode;
|
|
|
|
|
|
+ freezeWorldMatrix(newWorldMatrix?: Nullable<Matrix>): TransformNode;
|
|
/**
|
|
/**
|
|
* Allows back the World matrix computation.
|
|
* Allows back the World matrix computation.
|
|
* @returns the TransformNode.
|
|
* @returns the TransformNode.
|
|
@@ -14340,7 +14347,7 @@ declare module "babylonjs/Meshes/transformNode" {
|
|
* @param doNotCloneChildren Do not clone children hierarchy
|
|
* @param doNotCloneChildren Do not clone children hierarchy
|
|
* @returns the new transform node
|
|
* @returns the new transform node
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent: Node, doNotCloneChildren?: boolean): Nullable<TransformNode>;
|
|
|
|
|
|
+ clone(name: string, newParent: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<TransformNode>;
|
|
/**
|
|
/**
|
|
* Serializes the objects information.
|
|
* Serializes the objects information.
|
|
* @param currentSerializationObject defines the object to serialize in
|
|
* @param currentSerializationObject defines the object to serialize in
|
|
@@ -19114,7 +19121,7 @@ declare module "babylonjs/Meshes/instancedMesh" {
|
|
*
|
|
*
|
|
* Returns the Mesh.
|
|
* Returns the Mesh.
|
|
*/
|
|
*/
|
|
- setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): Mesh;
|
|
|
|
|
|
+ setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Updates the existing vertex data of the mesh geometry for the requested `kind`.
|
|
* Updates the existing vertex data of the mesh geometry for the requested `kind`.
|
|
* If the mesh has no geometry, it is simply returned as it is.
|
|
* If the mesh has no geometry, it is simply returned as it is.
|
|
@@ -19188,7 +19195,7 @@ declare module "babylonjs/Meshes/instancedMesh" {
|
|
*
|
|
*
|
|
* Returns the clone.
|
|
* Returns the clone.
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): InstancedMesh;
|
|
|
|
|
|
+ clone(name: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Disposes the InstancedMesh.
|
|
* Disposes the InstancedMesh.
|
|
* Returns nothing.
|
|
* Returns nothing.
|
|
@@ -19532,6 +19539,7 @@ declare module "babylonjs/Meshes/linesMesh" {
|
|
import { Material } from "babylonjs/Materials/material";
|
|
import { Material } from "babylonjs/Materials/material";
|
|
import "babylonjs/Shaders/color.fragment";
|
|
import "babylonjs/Shaders/color.fragment";
|
|
import "babylonjs/Shaders/color.vertex";
|
|
import "babylonjs/Shaders/color.vertex";
|
|
|
|
+ import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
/**
|
|
/**
|
|
* Line mesh
|
|
* Line mesh
|
|
* @see https://doc.babylonjs.com/babylon101/parametric_shapes
|
|
* @see https://doc.babylonjs.com/babylon101/parametric_shapes
|
|
@@ -19573,7 +19581,7 @@ declare module "babylonjs/Meshes/linesMesh" {
|
|
* @param useVertexColor defines if this LinesMesh supports vertex color
|
|
* @param useVertexColor defines if this LinesMesh supports vertex color
|
|
* @param useVertexAlpha defines if this LinesMesh supports vertex alpha
|
|
* @param useVertexAlpha defines if this LinesMesh supports vertex alpha
|
|
*/
|
|
*/
|
|
- constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: LinesMesh, doNotCloneChildren?: boolean,
|
|
|
|
|
|
+ constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<LinesMesh>, doNotCloneChildren?: boolean,
|
|
/**
|
|
/**
|
|
* If vertex color should be applied to the mesh
|
|
* If vertex color should be applied to the mesh
|
|
*/
|
|
*/
|
|
@@ -19601,9 +19609,9 @@ declare module "babylonjs/Meshes/linesMesh" {
|
|
*/
|
|
*/
|
|
readonly checkCollisions: boolean;
|
|
readonly checkCollisions: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _bind(subMesh: SubMesh, effect: Effect, fillMode: number): LinesMesh;
|
|
|
|
|
|
+ _bind(subMesh: SubMesh, effect: Effect, fillMode: number): Mesh;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _draw(subMesh: SubMesh, fillMode: number, instancesCount?: number): LinesMesh;
|
|
|
|
|
|
+ _draw(subMesh: SubMesh, fillMode: number, instancesCount?: number): Mesh;
|
|
/**
|
|
/**
|
|
* Disposes of the line mesh
|
|
* Disposes of the line mesh
|
|
* @param doNotRecurse If children should be disposed
|
|
* @param doNotRecurse If children should be disposed
|
|
@@ -19612,7 +19620,7 @@ declare module "babylonjs/Meshes/linesMesh" {
|
|
/**
|
|
/**
|
|
* Returns a new LineMesh object cloned from the current one.
|
|
* Returns a new LineMesh object cloned from the current one.
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): LinesMesh;
|
|
|
|
|
|
+ clone(name: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Creates a new InstancedLinesMesh object from the mesh model.
|
|
* Creates a new InstancedLinesMesh object from the mesh model.
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_instances
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_instances
|
|
@@ -23886,6 +23894,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
import { MeshLODLevel } from "babylonjs/Meshes/meshLODLevel";
|
|
import { MeshLODLevel } from "babylonjs/Meshes/meshLODLevel";
|
|
import { Path3D } from "babylonjs/Maths/math.path";
|
|
import { Path3D } from "babylonjs/Maths/math.path";
|
|
import { Plane } from "babylonjs/Maths/math.plane";
|
|
import { Plane } from "babylonjs/Maths/math.plane";
|
|
|
|
+ import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
import { LinesMesh } from "babylonjs/Meshes/linesMesh";
|
|
import { LinesMesh } from "babylonjs/Meshes/linesMesh";
|
|
import { InstancedMesh } from "babylonjs/Meshes/instancedMesh";
|
|
import { InstancedMesh } from "babylonjs/Meshes/instancedMesh";
|
|
import { GroundMesh } from "babylonjs/Meshes/groundMesh";
|
|
import { GroundMesh } from "babylonjs/Meshes/groundMesh";
|
|
@@ -24112,6 +24121,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
*/
|
|
*/
|
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
|
|
+ instantiateHierarychy(newParent?: Nullable<TransformNode>): Nullable<TransformNode>;
|
|
/**
|
|
/**
|
|
* Gets the class name
|
|
* Gets the class name
|
|
* @returns the string "Mesh".
|
|
* @returns the string "Mesh".
|
|
@@ -24349,7 +24359,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param stride defines the data stride size (can be null)
|
|
* @param stride defines the data stride size (can be null)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): Mesh;
|
|
|
|
|
|
+ setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Flags an associated vertex buffer as updatable
|
|
* Flags an associated vertex buffer as updatable
|
|
* @param kind defines which buffer to use (positions, indices, normals, etc). Possible `kind` values :
|
|
* @param kind defines which buffer to use (positions, indices, normals, etc). Possible `kind` values :
|
|
@@ -24394,7 +24404,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param makeItUnique defines if the geometry associated with the mesh must be cloned to make the change only for this mesh (and not all meshes associated with the same geometry)
|
|
* @param makeItUnique defines if the geometry associated with the mesh must be cloned to make the change only for this mesh (and not all meshes associated with the same geometry)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- updateVerticesData(kind: string, data: FloatArray, updateExtends?: boolean, makeItUnique?: boolean): Mesh;
|
|
|
|
|
|
+ updateVerticesData(kind: string, data: FloatArray, updateExtends?: boolean, makeItUnique?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
* @see http://doc.babylonjs.com/how_to/how_to_dynamically_morph_a_mesh#other-shapes-updatemeshpositions
|
|
* @see http://doc.babylonjs.com/how_to/how_to_dynamically_morph_a_mesh#other-shapes-updatemeshpositions
|
|
@@ -24415,7 +24425,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param updatable defines if the updated index buffer must be flagged as updatable (default is false)
|
|
* @param updatable defines if the updated index buffer must be flagged as updatable (default is false)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- setIndices(indices: IndicesArray, totalVertices?: Nullable<number>, updatable?: boolean): Mesh;
|
|
|
|
|
|
+ setIndices(indices: IndicesArray, totalVertices?: Nullable<number>, updatable?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Update the current index buffer
|
|
* Update the current index buffer
|
|
* @param indices defines the source data
|
|
* @param indices defines the source data
|
|
@@ -24423,7 +24433,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param gpuMemoryOnly defines a boolean indicating that only the GPU memory must be updated leaving the CPU version of the indices unchanged (false by default)
|
|
* @param gpuMemoryOnly defines a boolean indicating that only the GPU memory must be updated leaving the CPU version of the indices unchanged (false by default)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- updateIndices(indices: IndicesArray, offset?: number, gpuMemoryOnly?: boolean): Mesh;
|
|
|
|
|
|
+ updateIndices(indices: IndicesArray, offset?: number, gpuMemoryOnly?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Invert the geometry to move from a right handed system to a left handed one.
|
|
* Invert the geometry to move from a right handed system to a left handed one.
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
@@ -24552,7 +24562,7 @@ declare module "babylonjs/Meshes/mesh" {
|
|
* @param clonePhysicsImpostor allows/denies the cloning in the same time of the original mesh `body` used by the physics engine, if any (default `true`)
|
|
* @param clonePhysicsImpostor allows/denies the cloning in the same time of the original mesh `body` used by the physics engine, if any (default `true`)
|
|
* @returns a new mesh
|
|
* @returns a new mesh
|
|
*/
|
|
*/
|
|
- clone(name?: string, newParent?: Node, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean): Mesh;
|
|
|
|
|
|
+ clone(name?: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Releases resources associated with this mesh.
|
|
* Releases resources associated with this mesh.
|
|
* @param doNotRecurse Set to true to not recurse into each children (recurse into each children by default)
|
|
* @param doNotRecurse Set to true to not recurse into each children (recurse into each children by default)
|
|
@@ -26890,7 +26900,7 @@ declare module "babylonjs/Meshes/abstractMesh" {
|
|
* @param doNotCloneChildren defines a boolean indicating that children must not be cloned (false by default)
|
|
* @param doNotCloneChildren defines a boolean indicating that children must not be cloned (false by default)
|
|
* @returns the new mesh
|
|
* @returns the new mesh
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent: Node, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
|
|
|
|
+ clone(name: string, newParent: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Disposes all the submeshes of the current meshnp
|
|
* Disposes all the submeshes of the current meshnp
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
@@ -54131,6 +54141,7 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
import { NodeMaterialOptimizer } from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
import { NodeMaterialOptimizer } from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
import { ImageProcessingConfiguration, IImageProcessingConfigurationDefines } from "babylonjs/Materials/imageProcessingConfiguration";
|
|
import { ImageProcessingConfiguration, IImageProcessingConfigurationDefines } from "babylonjs/Materials/imageProcessingConfiguration";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { InputBlock } from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
/**
|
|
/**
|
|
* Interface used to configure the node material editor
|
|
* Interface used to configure the node material editor
|
|
*/
|
|
*/
|
|
@@ -54258,6 +54269,17 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
*/
|
|
*/
|
|
protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Get a block by its name
|
|
|
|
+ * @param name defines the name of the block to retrieve
|
|
|
|
+ * @returns the required block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getBlockByName(name: string): NodeMaterialBlock | null;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the list of input blocks attached to this material
|
|
|
|
+ * @returns an array of InputBlocks
|
|
|
|
+ */
|
|
|
|
+ getInputBlocks(): InputBlock[];
|
|
|
|
+ /**
|
|
* Adds a new optimizer to the list of optimizers
|
|
* Adds a new optimizer to the list of optimizers
|
|
* @param optimizer defines the optimizers to add
|
|
* @param optimizer defines the optimizers to add
|
|
* @returns the current material
|
|
* @returns the current material
|
|
@@ -54386,6 +54408,13 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
* @returns a new node material
|
|
* @returns a new node material
|
|
*/
|
|
*/
|
|
static Parse(source: any, scene: Scene, rootUrl?: string): NodeMaterial;
|
|
static Parse(source: any, scene: Scene, rootUrl?: string): NodeMaterial;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new node material set to default basic configuration
|
|
|
|
+ * @param name defines the name of the material
|
|
|
|
+ * @param scene defines the hosting scene
|
|
|
|
+ * @returns a new NodeMaterial
|
|
|
|
+ */
|
|
|
|
+ static CreateDefault(name: string, scene?: Scene): NodeMaterial;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/textureBlock" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Dual/textureBlock" {
|
|
@@ -54992,7 +55021,7 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlock" {
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
* @returns a copy of the current block
|
|
* @returns a copy of the current block
|
|
*/
|
|
*/
|
|
- clone(scene: Scene, rootUrl?: string): Nullable<NodeMaterialBlock>;
|
|
|
|
|
|
+ clone(scene: Scene, rootUrl?: string): NodeMaterialBlock | null;
|
|
/**
|
|
/**
|
|
* Serializes this block in a JSON representation
|
|
* Serializes this block in a JSON representation
|
|
* @returns the serialized block object
|
|
* @returns the serialized block object
|
|
@@ -55052,6 +55081,8 @@ declare module "babylonjs/Materials/Node/Blocks/Input/inputBlock" {
|
|
private _animationType;
|
|
private _animationType;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_wellKnownValue: Nullable<NodeMaterialWellKnownValues>;
|
|
_wellKnownValue: Nullable<NodeMaterialWellKnownValues>;
|
|
|
|
+ /** Gets or sets a boolean indicating that this input can be edited in the Inspector */
|
|
|
|
+ visibleInInspector: boolean;
|
|
/**
|
|
/**
|
|
* Gets or sets the connection point type (default is float)
|
|
* Gets or sets the connection point type (default is float)
|
|
*/
|
|
*/
|
|
@@ -78412,10 +78443,17 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
getPivotMatrix(): Matrix;
|
|
getPivotMatrix(): Matrix;
|
|
/**
|
|
/**
|
|
- * Prevents the World matrix to be computed any longer.
|
|
|
|
|
|
+ * Instantiate (when possible) or clone that node with its hierarchy
|
|
|
|
+ * @param newParent defines the new parent to use for the instance (or clone)
|
|
|
|
+ * @returns an instance (or a clone) of the current node with its hiearchy
|
|
|
|
+ */
|
|
|
|
+ instantiateHierarychy(newParent?: Nullable<TransformNode>): Nullable<TransformNode>;
|
|
|
|
+ /**
|
|
|
|
+ * Prevents the World matrix to be computed any longer
|
|
|
|
+ * @param newWorldMatrix defines an optional matrix to use as world matrix
|
|
* @returns the TransformNode.
|
|
* @returns the TransformNode.
|
|
*/
|
|
*/
|
|
- freezeWorldMatrix(): TransformNode;
|
|
|
|
|
|
+ freezeWorldMatrix(newWorldMatrix?: Nullable<Matrix>): TransformNode;
|
|
/**
|
|
/**
|
|
* Allows back the World matrix computation.
|
|
* Allows back the World matrix computation.
|
|
* @returns the TransformNode.
|
|
* @returns the TransformNode.
|
|
@@ -78638,7 +78676,7 @@ declare module BABYLON {
|
|
* @param doNotCloneChildren Do not clone children hierarchy
|
|
* @param doNotCloneChildren Do not clone children hierarchy
|
|
* @returns the new transform node
|
|
* @returns the new transform node
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent: Node, doNotCloneChildren?: boolean): Nullable<TransformNode>;
|
|
|
|
|
|
+ clone(name: string, newParent: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<TransformNode>;
|
|
/**
|
|
/**
|
|
* Serializes the objects information.
|
|
* Serializes the objects information.
|
|
* @param currentSerializationObject defines the object to serialize in
|
|
* @param currentSerializationObject defines the object to serialize in
|
|
@@ -83200,7 +83238,7 @@ declare module BABYLON {
|
|
*
|
|
*
|
|
* Returns the Mesh.
|
|
* Returns the Mesh.
|
|
*/
|
|
*/
|
|
- setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): Mesh;
|
|
|
|
|
|
+ setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Updates the existing vertex data of the mesh geometry for the requested `kind`.
|
|
* Updates the existing vertex data of the mesh geometry for the requested `kind`.
|
|
* If the mesh has no geometry, it is simply returned as it is.
|
|
* If the mesh has no geometry, it is simply returned as it is.
|
|
@@ -83274,7 +83312,7 @@ declare module BABYLON {
|
|
*
|
|
*
|
|
* Returns the clone.
|
|
* Returns the clone.
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): InstancedMesh;
|
|
|
|
|
|
+ clone(name: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Disposes the InstancedMesh.
|
|
* Disposes the InstancedMesh.
|
|
* Returns nothing.
|
|
* Returns nothing.
|
|
@@ -83631,7 +83669,7 @@ declare module BABYLON {
|
|
* @param useVertexColor defines if this LinesMesh supports vertex color
|
|
* @param useVertexColor defines if this LinesMesh supports vertex color
|
|
* @param useVertexAlpha defines if this LinesMesh supports vertex alpha
|
|
* @param useVertexAlpha defines if this LinesMesh supports vertex alpha
|
|
*/
|
|
*/
|
|
- constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: LinesMesh, doNotCloneChildren?: boolean,
|
|
|
|
|
|
+ constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<LinesMesh>, doNotCloneChildren?: boolean,
|
|
/**
|
|
/**
|
|
* If vertex color should be applied to the mesh
|
|
* If vertex color should be applied to the mesh
|
|
*/
|
|
*/
|
|
@@ -83659,9 +83697,9 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
readonly checkCollisions: boolean;
|
|
readonly checkCollisions: boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _bind(subMesh: SubMesh, effect: Effect, fillMode: number): LinesMesh;
|
|
|
|
|
|
+ _bind(subMesh: SubMesh, effect: Effect, fillMode: number): Mesh;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _draw(subMesh: SubMesh, fillMode: number, instancesCount?: number): LinesMesh;
|
|
|
|
|
|
+ _draw(subMesh: SubMesh, fillMode: number, instancesCount?: number): Mesh;
|
|
/**
|
|
/**
|
|
* Disposes of the line mesh
|
|
* Disposes of the line mesh
|
|
* @param doNotRecurse If children should be disposed
|
|
* @param doNotRecurse If children should be disposed
|
|
@@ -83670,7 +83708,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Returns a new LineMesh object cloned from the current one.
|
|
* Returns a new LineMesh object cloned from the current one.
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): LinesMesh;
|
|
|
|
|
|
+ clone(name: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Creates a new InstancedLinesMesh object from the mesh model.
|
|
* Creates a new InstancedLinesMesh object from the mesh model.
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_instances
|
|
* @see http://doc.babylonjs.com/how_to/how_to_use_instances
|
|
@@ -88009,6 +88047,7 @@ declare module BABYLON {
|
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
* @param clonePhysicsImpostor When cloning, include cloning mesh physics impostor, default True.
|
|
*/
|
|
*/
|
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
constructor(name: string, scene?: Nullable<Scene>, parent?: Nullable<Node>, source?: Nullable<Mesh>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean);
|
|
|
|
+ instantiateHierarychy(newParent?: Nullable<TransformNode>): Nullable<TransformNode>;
|
|
/**
|
|
/**
|
|
* Gets the class name
|
|
* Gets the class name
|
|
* @returns the string "Mesh".
|
|
* @returns the string "Mesh".
|
|
@@ -88246,7 +88285,7 @@ declare module BABYLON {
|
|
* @param stride defines the data stride size (can be null)
|
|
* @param stride defines the data stride size (can be null)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): Mesh;
|
|
|
|
|
|
+ setVerticesData(kind: string, data: FloatArray, updatable?: boolean, stride?: number): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Flags an associated vertex buffer as updatable
|
|
* Flags an associated vertex buffer as updatable
|
|
* @param kind defines which buffer to use (positions, indices, normals, etc). Possible `kind` values :
|
|
* @param kind defines which buffer to use (positions, indices, normals, etc). Possible `kind` values :
|
|
@@ -88291,7 +88330,7 @@ declare module BABYLON {
|
|
* @param makeItUnique defines if the geometry associated with the mesh must be cloned to make the change only for this mesh (and not all meshes associated with the same geometry)
|
|
* @param makeItUnique defines if the geometry associated with the mesh must be cloned to make the change only for this mesh (and not all meshes associated with the same geometry)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- updateVerticesData(kind: string, data: FloatArray, updateExtends?: boolean, makeItUnique?: boolean): Mesh;
|
|
|
|
|
|
+ updateVerticesData(kind: string, data: FloatArray, updateExtends?: boolean, makeItUnique?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
* This method updates the vertex positions of an updatable mesh according to the `positionFunction` returned values.
|
|
* @see http://doc.babylonjs.com/how_to/how_to_dynamically_morph_a_mesh#other-shapes-updatemeshpositions
|
|
* @see http://doc.babylonjs.com/how_to/how_to_dynamically_morph_a_mesh#other-shapes-updatemeshpositions
|
|
@@ -88312,7 +88351,7 @@ declare module BABYLON {
|
|
* @param updatable defines if the updated index buffer must be flagged as updatable (default is false)
|
|
* @param updatable defines if the updated index buffer must be flagged as updatable (default is false)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- setIndices(indices: IndicesArray, totalVertices?: Nullable<number>, updatable?: boolean): Mesh;
|
|
|
|
|
|
+ setIndices(indices: IndicesArray, totalVertices?: Nullable<number>, updatable?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Update the current index buffer
|
|
* Update the current index buffer
|
|
* @param indices defines the source data
|
|
* @param indices defines the source data
|
|
@@ -88320,7 +88359,7 @@ declare module BABYLON {
|
|
* @param gpuMemoryOnly defines a boolean indicating that only the GPU memory must be updated leaving the CPU version of the indices unchanged (false by default)
|
|
* @param gpuMemoryOnly defines a boolean indicating that only the GPU memory must be updated leaving the CPU version of the indices unchanged (false by default)
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
*/
|
|
*/
|
|
- updateIndices(indices: IndicesArray, offset?: number, gpuMemoryOnly?: boolean): Mesh;
|
|
|
|
|
|
+ updateIndices(indices: IndicesArray, offset?: number, gpuMemoryOnly?: boolean): AbstractMesh;
|
|
/**
|
|
/**
|
|
* Invert the geometry to move from a right handed system to a left handed one.
|
|
* Invert the geometry to move from a right handed system to a left handed one.
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
@@ -88449,7 +88488,7 @@ declare module BABYLON {
|
|
* @param clonePhysicsImpostor allows/denies the cloning in the same time of the original mesh `body` used by the physics engine, if any (default `true`)
|
|
* @param clonePhysicsImpostor allows/denies the cloning in the same time of the original mesh `body` used by the physics engine, if any (default `true`)
|
|
* @returns a new mesh
|
|
* @returns a new mesh
|
|
*/
|
|
*/
|
|
- clone(name?: string, newParent?: Node, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean): Mesh;
|
|
|
|
|
|
+ clone(name?: string, newParent?: Nullable<Node>, doNotCloneChildren?: boolean, clonePhysicsImpostor?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Releases resources associated with this mesh.
|
|
* Releases resources associated with this mesh.
|
|
* @param doNotRecurse Set to true to not recurse into each children (recurse into each children by default)
|
|
* @param doNotRecurse Set to true to not recurse into each children (recurse into each children by default)
|
|
@@ -90727,7 +90766,7 @@ declare module BABYLON {
|
|
* @param doNotCloneChildren defines a boolean indicating that children must not be cloned (false by default)
|
|
* @param doNotCloneChildren defines a boolean indicating that children must not be cloned (false by default)
|
|
* @returns the new mesh
|
|
* @returns the new mesh
|
|
*/
|
|
*/
|
|
- clone(name: string, newParent: Node, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
|
|
|
|
+ clone(name: string, newParent: Nullable<Node>, doNotCloneChildren?: boolean): Nullable<AbstractMesh>;
|
|
/**
|
|
/**
|
|
* Disposes all the submeshes of the current meshnp
|
|
* Disposes all the submeshes of the current meshnp
|
|
* @returns the current mesh
|
|
* @returns the current mesh
|
|
@@ -116430,6 +116469,17 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Get a block by its name
|
|
|
|
+ * @param name defines the name of the block to retrieve
|
|
|
|
+ * @returns the required block or null if not found
|
|
|
|
+ */
|
|
|
|
+ getBlockByName(name: string): NodeMaterialBlock | null;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the list of input blocks attached to this material
|
|
|
|
+ * @returns an array of InputBlocks
|
|
|
|
+ */
|
|
|
|
+ getInputBlocks(): InputBlock[];
|
|
|
|
+ /**
|
|
* Adds a new optimizer to the list of optimizers
|
|
* Adds a new optimizer to the list of optimizers
|
|
* @param optimizer defines the optimizers to add
|
|
* @param optimizer defines the optimizers to add
|
|
* @returns the current material
|
|
* @returns the current material
|
|
@@ -116558,6 +116608,13 @@ declare module BABYLON {
|
|
* @returns a new node material
|
|
* @returns a new node material
|
|
*/
|
|
*/
|
|
static Parse(source: any, scene: Scene, rootUrl?: string): NodeMaterial;
|
|
static Parse(source: any, scene: Scene, rootUrl?: string): NodeMaterial;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new node material set to default basic configuration
|
|
|
|
+ * @param name defines the name of the material
|
|
|
|
+ * @param scene defines the hosting scene
|
|
|
|
+ * @returns a new NodeMaterial
|
|
|
|
+ */
|
|
|
|
+ static CreateDefault(name: string, scene?: Scene): NodeMaterial;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
@@ -117126,7 +117183,7 @@ declare module BABYLON {
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
* @returns a copy of the current block
|
|
* @returns a copy of the current block
|
|
*/
|
|
*/
|
|
- clone(scene: Scene, rootUrl?: string): Nullable<NodeMaterialBlock>;
|
|
|
|
|
|
+ clone(scene: Scene, rootUrl?: string): NodeMaterialBlock | null;
|
|
/**
|
|
/**
|
|
* Serializes this block in a JSON representation
|
|
* Serializes this block in a JSON representation
|
|
* @returns the serialized block object
|
|
* @returns the serialized block object
|
|
@@ -117175,6 +117232,8 @@ declare module BABYLON {
|
|
private _animationType;
|
|
private _animationType;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_wellKnownValue: Nullable<NodeMaterialWellKnownValues>;
|
|
_wellKnownValue: Nullable<NodeMaterialWellKnownValues>;
|
|
|
|
+ /** Gets or sets a boolean indicating that this input can be edited in the Inspector */
|
|
|
|
+ visibleInInspector: boolean;
|
|
/**
|
|
/**
|
|
* Gets or sets the connection point type (default is float)
|
|
* Gets or sets the connection point type (default is float)
|
|
*/
|
|
*/
|