Function NodeMaterialParse
-
NodeMaterialParse(
source: any,
scene: Scene,
rootUrl?: string,
shaderLanguage?: ShaderLanguage,
): NodeMaterialParameters
- source: any
defines the JSON representation of the material
- scene: Scene
defines the hosting scene
- rootUrl: string = ""
defines the root URL to use to load textures and relative dependencies
- shaderLanguage: ShaderLanguage = ShaderLanguage.GLSL
defines the language to use (GLSL by default)
Returns NodeMaterial
a new node material
- source: any
Creates a node material from parsed material data