Create parsing system that converts supported nodes and ignores unsupported #2

Merged
Bogdan Nagirniak merged 14 commits from Vasyl-Pidhirskyi/blender:BLEN-500 into matx-export-material 2023-08-28 12:29:46 +02:00
Showing only changes of commit 3e9fd8e94a - Show all commits

View File

@ -95,8 +95,8 @@ void MaterialData::init()
pxr::HdMaterialNetworkMap network_map; pxr::HdMaterialNetworkMap network_map;
if (pxr::UsdShadeShader mtlx_surface = usd_material.ComputeSurfaceSource(contextVector)) { if (pxr::UsdShadeShader surface = usd_material.ComputeSurfaceSource(contextVector)) {
pxr::UsdImagingBuildHdMaterialNetworkFromTerminal(mtlx_surface.GetPrim(), pxr::UsdImagingBuildHdMaterialNetworkFromTerminal(surface.GetPrim(),
pxr::HdMaterialTerminalTokens->surface, pxr::HdMaterialTerminalTokens->surface,
shaderSourceTypes, shaderSourceTypes,
contextVector, contextVector,