Closed niklasharrysson closed 4 years ago
For custom attributes configuration should be supported by an "exportable" attribute on the AttributeDef elements defining the custom attributes. AttributeDefs with "exportable" set to true will be exported as meta data in the shader.
Resolved by: https://github.com/materialx/MaterialX/pull/435
We should make sure all appropriate MaterialX attributes are added as OSL parameter metadata. For example docs/help, min/max values etc.
In addition we should implement support for adding in custom attributes as shader or parameter metadata. Possibly configurable by setting a list of the corresponding attribute names on the generator before generation.