MaterialX 1.38.10
Loading...
Searching...
No Matches
ShaderTranslator Class Reference

A helper class for translating content between shading models. More...

#include <ShaderTranslator.h>

Public Member Functions

void translateShader (NodePtr shader, const string &destCategory)
 Translate a shader node to the destination shading model.
 
void translateAllMaterials (DocumentPtr doc, const string &destShader)
 Translate each material in the input document to the destination shading model.
 

Static Public Member Functions

static ShaderTranslatorPtr create ()
 

Protected Member Functions

void connectTranslationInputs (NodePtr shader, NodeDefPtr translationNodeDef)
 
void connectTranslationOutputs (NodePtr shader)
 

Protected Attributes

NodeGraphPtr _graph
 
NodePtr _translationNode
 

Detailed Description

A helper class for translating content between shading models.


The documentation for this class was generated from the following files: