Skip to main content

Interface: ObjMaterialOptions

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

The options that drive OBJ material loading. A subset of ModelMobjectOptions.

Properties​

loadMaterials?​

optional loadMaterials: boolean

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

Auto-derive the .mtl URL from the .obj URL and load it. Default: false.


mtlLoader?​

optional mtlLoader: MtlLoader

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

Inject an MTLLoader directly (bypasses the factory and the network).


mtlUrl?​

optional mtlUrl: string

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

Explicit companion .mtl URL. Takes priority over loadMaterials.


onProgress()?​

optional onProgress: (event) => void

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

Progress callback forwarded to the MTLLoader.

Parameters​

event​

ProgressEvent

Returns​

void