mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-30 08:34:59 +00:00
feat(materialx): Update MaterialX library handling and improve shader generation logging
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <MaterialXCore/Document.h>
|
||||
#include <MaterialXCore/Types.h>
|
||||
#include <MaterialXFormat/File.h>
|
||||
#include <MaterialXFormat/Util.h>
|
||||
#include <MaterialXFormat/XmlIo.h>
|
||||
#include <SDL3/SDL.h>
|
||||
#include <rapidjson/document.h>
|
||||
#include <rapidjson/error/en.h>
|
||||
@@ -79,7 +81,7 @@ mx::DocumentPtr LoadMaterialXDocument(const std::filesystem::path& documentPath,
|
||||
const std::filesystem::path& scriptDirectory) {
|
||||
mx::DocumentPtr document = mx::createDocument();
|
||||
mx::FileSearchPath searchPath = BuildMaterialXSearchPath(config, scriptDirectory);
|
||||
mx::readFromXmlFile(document, mx::FilePath(documentPath.string()), &searchPath);
|
||||
mx::readFromXmlFile(document, mx::FilePath(documentPath.string()), searchPath);
|
||||
|
||||
if (!config.libraryFolders.empty()) {
|
||||
mx::DocumentPtr stdLib = mx::createDocument();
|
||||
|
||||
Reference in New Issue
Block a user