HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CarryThinFilmParameters< TBase > Class Template Reference

#include <ClosureLayerNodeMdl.h>

+ Inheritance diagram for CarryThinFilmParameters< TBase >:

Public Member Functions

void addInputs (ShaderNode &node, GenContext &context) const override
 
bool isEditable (const ShaderInput &input) const override
 

Detailed Description

template<typename TBase>
class CarryThinFilmParameters< TBase >

Helper class to be injected into nodes that need to carry thin film parameters from the thin_film_bsdf through layers and mixers, etc., to the elemental bsdfs that support thin film. Because thin-film can not be layered on any BSDF in MDL, we try to push down the parameters to the nodes that support thin-film.

Definition at line 44 of file ClosureLayerNodeMdl.h.

Member Function Documentation

template<typename TBase>
void CarryThinFilmParameters< TBase >::addInputs ( ShaderNode node,
GenContext context 
) const
inlineoverride

Add the thin film inputs for transporting the parameter. addInputs for the injected base class is called first.

Definition at line 49 of file ClosureLayerNodeMdl.h.

template<typename TBase>
bool CarryThinFilmParameters< TBase >::isEditable ( const ShaderInput input) const
inlineoverride

Mark the thin film parameters as not editable because connections are created while emitting the MDL code and the default values should not get exposed to the public material interface.

Definition at line 59 of file ClosureLayerNodeMdl.h.


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