![]() |
MaterialX 1.39.5
|
Distributes layer operations over mix nodes. More...
#include <ShaderGraphRefactor.h>
Public Member Functions | |
| const string & | getName () const override |
| Return the name of this refactoring pass. | |
| size_t | execute (ShaderGraph &graph, GenContext &context) override |
| Execute the pass on the given graph. | |
Distributes layer operations over mix nodes.
Transforms layer(mix(A, B, w), C) into mix(layer(A, C), layer(B, C), w) to satisfy backends that cannot handle a mixed BSDF as the top operand of a layer node.
|
overridevirtual |
Execute the pass on the given graph.
Return the number of graph edits made, or zero if the pass is not applicable to the current context.
Implements ShaderGraphRefactor.
|
overridevirtual |
Return the name of this refactoring pass.
Implements ShaderGraphRefactor.