|
@@ -60107,6 +60107,10 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
/** Get the inspector from bundle or global */
|
|
/** Get the inspector from bundle or global */
|
|
private _getGlobalNodeMaterialEditor;
|
|
private _getGlobalNodeMaterialEditor;
|
|
/**
|
|
/**
|
|
|
|
+ * Snippet ID if the material was created from the snippet server
|
|
|
|
+ */
|
|
|
|
+ snippetId: string;
|
|
|
|
+ /**
|
|
* Gets or sets data used by visual editor
|
|
* Gets or sets data used by visual editor
|
|
* @see https://nme.babylonjs.com
|
|
* @see https://nme.babylonjs.com
|
|
*/
|
|
*/
|
|
@@ -60365,9 +60369,10 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
* @param snippetId defines the snippet to load
|
|
* @param snippetId defines the snippet to load
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
* @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
|
|
|
|
+ * @param nodeMaterial defines a node material to update (instead of creating a new one)
|
|
* @returns a promise that will resolve to the new node material
|
|
* @returns a promise that will resolve to the new node material
|
|
*/
|
|
*/
|
|
- static ParseFromSnippetAsync(snippetId: string, scene: Scene, rootUrl?: string): Promise<NodeMaterial>;
|
|
|
|
|
|
+ static ParseFromSnippetAsync(snippetId: string, scene: Scene, rootUrl?: string, nodeMaterial?: NodeMaterial): Promise<NodeMaterial>;
|
|
/**
|
|
/**
|
|
* Creates a new node material set to default basic configuration
|
|
* Creates a new node material set to default basic configuration
|
|
* @param name defines the name of the material
|
|
* @param name defines the name of the material
|
|
@@ -71651,9 +71656,9 @@ declare module "babylonjs/Misc/assetsManager" {
|
|
*/
|
|
*/
|
|
noMipmap?: boolean | undefined;
|
|
noMipmap?: boolean | undefined;
|
|
/**
|
|
/**
|
|
- * Defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * Defines if texture must be inverted on Y axis (default is true)
|
|
*/
|
|
*/
|
|
- invertY?: boolean | undefined;
|
|
|
|
|
|
+ invertY: boolean;
|
|
/**
|
|
/**
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|
|
@@ -71675,7 +71680,7 @@ declare module "babylonjs/Misc/assetsManager" {
|
|
* @param name defines the name of the task
|
|
* @param name defines the name of the task
|
|
* @param url defines the location of the file to load
|
|
* @param url defines the location of the file to load
|
|
* @param noMipmap defines if mipmap should not be generated (default is false)
|
|
* @param noMipmap defines if mipmap should not be generated (default is false)
|
|
- * @param invertY defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * @param invertY defines if texture must be inverted on Y axis (default is true)
|
|
* @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|
|
constructor(
|
|
constructor(
|
|
@@ -71692,9 +71697,9 @@ declare module "babylonjs/Misc/assetsManager" {
|
|
*/
|
|
*/
|
|
noMipmap?: boolean | undefined,
|
|
noMipmap?: boolean | undefined,
|
|
/**
|
|
/**
|
|
- * Defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * Defines if texture must be inverted on Y axis (default is true)
|
|
*/
|
|
*/
|
|
- invertY?: boolean | undefined,
|
|
|
|
|
|
+ invertY?: boolean,
|
|
/**
|
|
/**
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|
|
@@ -131562,6 +131567,10 @@ declare module BABYLON {
|
|
/** Get the inspector from bundle or global */
|
|
/** Get the inspector from bundle or global */
|
|
private _getGlobalNodeMaterialEditor;
|
|
private _getGlobalNodeMaterialEditor;
|
|
/**
|
|
/**
|
|
|
|
+ * Snippet ID if the material was created from the snippet server
|
|
|
|
+ */
|
|
|
|
+ snippetId: string;
|
|
|
|
+ /**
|
|
* Gets or sets data used by visual editor
|
|
* Gets or sets data used by visual editor
|
|
* @see https://nme.babylonjs.com
|
|
* @see https://nme.babylonjs.com
|
|
*/
|
|
*/
|
|
@@ -131820,9 +131829,10 @@ declare module BABYLON {
|
|
* @param snippetId defines the snippet to load
|
|
* @param snippetId defines the snippet to load
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
* @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
|
|
|
|
+ * @param nodeMaterial defines a node material to update (instead of creating a new one)
|
|
* @returns a promise that will resolve to the new node material
|
|
* @returns a promise that will resolve to the new node material
|
|
*/
|
|
*/
|
|
- static ParseFromSnippetAsync(snippetId: string, scene: Scene, rootUrl?: string): Promise<NodeMaterial>;
|
|
|
|
|
|
+ static ParseFromSnippetAsync(snippetId: string, scene: Scene, rootUrl?: string, nodeMaterial?: NodeMaterial): Promise<NodeMaterial>;
|
|
/**
|
|
/**
|
|
* Creates a new node material set to default basic configuration
|
|
* Creates a new node material set to default basic configuration
|
|
* @param name defines the name of the material
|
|
* @param name defines the name of the material
|
|
@@ -142101,9 +142111,9 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
noMipmap?: boolean | undefined;
|
|
noMipmap?: boolean | undefined;
|
|
/**
|
|
/**
|
|
- * Defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * Defines if texture must be inverted on Y axis (default is true)
|
|
*/
|
|
*/
|
|
- invertY?: boolean | undefined;
|
|
|
|
|
|
+ invertY: boolean;
|
|
/**
|
|
/**
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|
|
@@ -142125,7 +142135,7 @@ declare module BABYLON {
|
|
* @param name defines the name of the task
|
|
* @param name defines the name of the task
|
|
* @param url defines the location of the file to load
|
|
* @param url defines the location of the file to load
|
|
* @param noMipmap defines if mipmap should not be generated (default is false)
|
|
* @param noMipmap defines if mipmap should not be generated (default is false)
|
|
- * @param invertY defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * @param invertY defines if texture must be inverted on Y axis (default is true)
|
|
* @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|
|
constructor(
|
|
constructor(
|
|
@@ -142142,9 +142152,9 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
noMipmap?: boolean | undefined,
|
|
noMipmap?: boolean | undefined,
|
|
/**
|
|
/**
|
|
- * Defines if texture must be inverted on Y axis (default is false)
|
|
|
|
|
|
+ * Defines if texture must be inverted on Y axis (default is true)
|
|
*/
|
|
*/
|
|
- invertY?: boolean | undefined,
|
|
|
|
|
|
+ invertY?: boolean,
|
|
/**
|
|
/**
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
* Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
|
|
*/
|
|
*/
|