GPUOpen-LibrariesAndSDKs / BlenderUSDHydraAddon

This add-on allows you to assemble and compose USD data with Blender data and render it all using various renderers via Hydra.
Apache License 2.0
362 stars 37 forks source link

BLEN-69: Update Material X converter #236

Closed VascoPi closed 2 years ago

VascoPi commented 2 years ago

PURPOSE

Update Material X converter.

EFFECT OF CHANGE

Improved Material X converter.

TECHNICAL STEPS

Added OUTPUT_TYPE constant that maps blender and materialx output types. Added get_output_type() method to get dynamically output type of node according to linked socket. Improved cached_nodes keys with output_type. A unique cache key allows the creation of a specific node for every output type.