6 #ifndef MATERIALX_CLOSURELAYERNODEMDL_H
7 #define MATERIALX_CLOSURELAYERNODEMDL_H
24 static const string TOP;
26 static const string FG;
27 static const string BG;
28 static const string MIX;
Holds all constants required by the layering and its transformations.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
#define MATERIALX_NAMESPACE_BEGIN
static ShaderNodeImplPtr create()
static const string TOP_WEIGHT
mix amount forwarded into layer top component
virtual bool isEditable(const ShaderInput &) const
static const string BG
mix parameter name of the background
virtual void addInputs(ShaderNode &node, GenContext &context) const
Add additional inputs on a node.
static const string BASE
layer parameter name of the base component
static const string MIX
mix parameter name of the amount
Closure layer node implementation for MDL.
static const string FG
mix parameter name of the foreground
#define MATERIALX_NAMESPACE_END
static const string TOP
String constants.
virtual void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit the function call or inline source code for given node instance in the given context...