|
@@ -54940,6 +54940,13 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlock" {
|
|
|
*/
|
|
|
build(state: NodeMaterialBuildState, contextSwitched?: boolean): boolean;
|
|
|
/**
|
|
|
+ * Clone the current block to a new identical block
|
|
|
+ * @param scene defines the hosting scene
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
+ * @returns a copy of the current block
|
|
|
+ */
|
|
|
+ clone(scene: Scene, rootUrl?: string): Nullable<NodeMaterialBlock>;
|
|
|
+ /**
|
|
|
* Serializes this block in a JSON representation
|
|
|
* @returns the serialized block object
|
|
|
*/
|
|
@@ -116873,6 +116880,13 @@ declare module BABYLON {
|
|
|
*/
|
|
|
build(state: NodeMaterialBuildState, contextSwitched?: boolean): boolean;
|
|
|
/**
|
|
|
+ * Clone the current block to a new identical block
|
|
|
+ * @param scene defines the hosting scene
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
+ * @returns a copy of the current block
|
|
|
+ */
|
|
|
+ clone(scene: Scene, rootUrl?: string): Nullable<NodeMaterialBlock>;
|
|
|
+ /**
|
|
|
* Serializes this block in a JSON representation
|
|
|
* @returns the serialized block object
|
|
|
*/
|