loadMaterial
AssetLoaderModuleInterface::loadMaterial
Loads a material from a file.
Declaration
virtual Model loadMaterial(const std::string& filePath) = 0;
Parameters
Name |
Type |
Description |
---|---|---|
filePath |
const std::string& |
Path to the file to load. |
Returns
A Material containing information about the loaded material.
If the material could not be loaded (for example: if the file does not exist, or the Asset Loader Module does not support this material file format), the returned Material contains the structure’s default information.