Skip to main content

Class: ThreeMaterialLoader

Asset-Management.ThreeMaterialLoader

Hierarchy

  • MaterialLoader

    ThreeMaterialLoader

Properties

materials

materials: undefined | IMaterialManager

Defined in

webgi/src/extras/asset_manager/importer/threejs/loaders/ThreeMaterialLoader.ts:11


importer

importer: undefined | IAssetImporter

Defined in

webgi/src/extras/asset_manager/importer/threejs/loaders/ThreeMaterialLoader.ts:12

Constructors

constructor

new ThreeMaterialLoader(manager)

Parameters

NameType
managerLoadingManager

Overrides

MaterialLoader.constructor

Defined in

webgi/src/extras/asset_manager/importer/threejs/loaders/ThreeMaterialLoader.ts:14

Methods

loadAsync

loadAsync(url, onProgress?): Promise<Material>

Parameters

NameType
urlstring
onProgress?(event: ProgressEvent<EventTarget>) => void

Returns

Promise<Material>

Overrides

MaterialLoader.loadAsync

Defined in

webgi/src/extras/asset_manager/importer/threejs/loaders/ThreeMaterialLoader.ts:18


parse

parse(json, imagesOverride?): Material

Parameters

NameType
jsonany
imagesOverride?Record<string, any>

Returns

Material

Overrides

MaterialLoader.parse

Defined in

webgi/src/extras/asset_manager/importer/threejs/loaders/ThreeMaterialLoader.ts:52