MaterialLoader JSON file format?

Hi

Call this code. Console warning “Undefined texture 38E4A74D-2901-439D-89C8-BF704E45A576” and “Undefined texture 2E97B9F3-B233-415E-9A5B-C3D373417D52”. Material loading but textures not found.

var loader = new three.MaterialLoader();

        loader.load(
        	materialFile,
        	function ( material ) {
 
        	},
        	function ( xhr ) {
        		
        	},
        	function ( err ) {
        	        	
        	}
        );

File content:

{
    "metadata":{
        "version":4.5,
        "type":"Material",
        "generator":"Material.toJSON"
    },
    "textures":[
        {
            "uuid":"38E4A74D-2901-439D-89C8-BF704E45A576",
            "name":"",
            "mapping":300,
            "repeat":[
                1,
                1
            ],
            "offset":[
                0,
                0
            ],
            "center":[
                0,
                0
            ],
            "rotation":0,
            "wrap":[
                1001,
                1001
            ],
            "format":1022,
            "type":1009,
            "encoding":3001,
            "minFilter":1008,
            "magFilter":1006,
            "anisotropy":1,
            "flipY":true,
            "premultiplyAlpha":false,
            "unpackAlignment":4,
            "image":"4524E0AC-1C75-477B-B887-A2E146E6DEB9"
        },
        {
            "uuid":"2E97B9F3-B233-415E-9A5B-C3D373417D52",
            "name":"",
            "mapping":300,
            "repeat":[
                1,
                1
            ],
            "offset":[
                0,
                0
            ],
            "center":[
                0,
                0
            ],
            "rotation":0,
            "wrap":[
                1001,
                1001
            ],
            "format":1022,
            "type":1009,
            "encoding":3000,
            "minFilter":1008,
            "magFilter":1006,
            "anisotropy":1,
            "flipY":true,
            "premultiplyAlpha":false,
            "unpackAlignment":4,
            "image":"751E9C62-E0BE-4DAB-890A-21CCB48CBF3D"
        }
    ],
    "images":[
        {
            "uuid":"4524E0AC-1C75-477B-B887-A2E146E6DEB9",
			"url":".........."
        },
        {
            "uuid":"751E9C62-E0BE-4DAB-890A-21CCB48CBF3D",
			"url":".........."
        }
    ],
    "uuid":"751F1556-EDDF-463C-888F-59AB534F7763",
    "type":"MeshPhysicalMaterial",
    "roughness":0.555,
    "metalness":0,
    "emissive":0,
    "clearcoat":0,
    "clearcoatRoughness":1,
    "map":"38E4A74D-2901-439D-89C8-BF704E45A576",
    "bumpMap":"2E97B9F3-B233-415E-9A5B-C3D373417D52",
    "bumpScale":0.01,
    "depthFunc":3,
    "depthTest":true,
    "depthWrite":true,
    "stencilWrite":false,
    "stencilWriteMask":255,
    "stencilFunc":519,
    "stencilRef":0,
    "stencilFuncMask":255,
    "stencilFail":7680,
    "stencilZFail":7680,
    "stencilZPass":7680,
    "color":16777215
}

Notice that MaterialLoader is not able to load textures. It expects that textures are set via MaterialLoader.setTextures() before loading a JSON file like ObjectLoader does:

So MaterialLoader can only be used as a standalone loader if the respective materials have no textures. Otherwise you have to prepare the textures on app level similar how ObjectLoader does.

Thank you so much