Skip to main content

Function: setMtlLoaderFactory()

setMtlLoaderFactory(factory): void

Defined in: src/mobjects/three-d/objMaterials.ts:63

Inject an MTLLoader factory, replacing the lazy-loaded Three.js MTLLoader. Pass null to restore the default. Tests use this to avoid any real loader.

Parameters​

factory​

MtlLoaderFactory

Returns​

void