Setting default material to AssetContainer or SceneLoader?

HI. I noticed the Scene has a property ‘defaultMaterial’, but it seems doesnot affect assetContainers.

Currently I will iterate all meshes in a container after load, if the mesh name matches __GLTFLoader._default I set it to my default material.

Is there any way to set it to SceneLoader or something?

Hello! GLTFs are always loaded with a PBR Material as that’s part of their specification

1 Like