Variable ShaderMaterialCreateFromSnippetAsyncConst
ShaderMaterialCreateFromSnippetAsync: (
this: void | typeof ShaderMaterial,
snippetId: string,
scene: Scene,
rootUrl?: string,
) => Promise<ShaderMaterial> = ShaderMaterialParseFromSnippetAsync
this: void | typeof ShaderMaterial,
snippetId: string,
scene: Scene,
rootUrl?: string,
) => Promise<ShaderMaterial> = ShaderMaterialParseFromSnippetAsync
Type Declaration
-
- (
this: void | typeof ShaderMaterial,
snippetId: string,
scene: Scene,
rootUrl?: string,
): Promise<ShaderMaterial> -
Creates a ShaderMaterial from a snippet saved by the Inspector
Parameters
- this: void | typeof ShaderMaterial
- snippetId: string
defines the snippet to load
- scene: Scene
defines the hosting scene
- rootUrl: string = ""
defines the root URL to use to load textures and relative dependencies
Returns Promise<ShaderMaterial>
a promise that will resolve to the new ShaderMaterial
- (
Creates a ShaderMaterial from a snippet saved by the Inspector