![]() |
RenderMan API
23.0
|
#include <RixSceneGraph.h>
Public Member Functions | |
virtual RtUString | GetIdentifier () const =0 |
virtual RixSGError | SetIdentifier (RtUString identifier)=0 |
virtual RixSGError | SetBxdf (unsigned num, RixSGShader const *nodes)=0 |
virtual RixSGError | SetLight (unsigned num, RixSGShader const *nodes)=0 |
virtual RixSGError | SetLightFilter (unsigned num, RixSGShader const *nodes)=0 |
virtual RixSGError | SetDisplace (unsigned num, RixSGShader const *nodes)=0 |
RixSGMaterial ()=default | |
virtual | ~RixSGMaterial ()=default |
Scene graph material description
Materials are containers for bxdf, diplacement, and light and light filter shading graphs. Materials can be assigned to scene graph DAG locations.
Definition at line 193 of file RixSceneGraph.h.
|
inlinedefault |
|
virtualdefault |
|
pure virtual |
Get material identifier
Material identifiers are used to uniquely identifiy materials. If specified, these identifiers can be used for late binding of materials from inside a procedural.
|
pure virtual |
Set bxdf shading graph
The bxdf describes surface properties such as light scattering and appearance. Bxdf shading graphs may contain RixSGShaderType::k_Bxdf and RixSGShaderType::k_Pattern nodes with a terminal of RixSGShaderType::k_Bxdf. The default bxdf is "PxrDiffuse".
[in] | num | The number of nodes in the shading graph |
[in] | nodes | The bxdf shading graph nodes |
|
pure virtual |
Set displace shading graph
Dispalcement modifies geometry before the lighting stage. Displacement shading graphs may contain RixSGShaderType::k_Displacement and RixSGShaderType::k_Pattern nodes with a terminal of RixSGShaderType::k_Displacement. There is no default displacement.
[in] | num | The number of nodes in the shading graph |
[in] | nodes | The displacement shading graph nodes |
|
pure virtual |
Set material identifier
Material identifiers are used to uniquely identifiy materials. If specified, these identifiers can be used for late binding of materials from inside a procedural.
[in] | identifier | The material identifier |
|
pure virtual |
Set geometry light shading graph
The light describes light emission for geometric lights. Geometric light shading graphs may contain RixSGShaderType::k_Light and RixSGShaderType::k_Pattern nodes with a terminal RixSGShaderType::k_Light of PxrMeshLight. There is no default geometric light.
[in] | num | The number of nodes in the shading graph |
[in] | nodes | The geometric light shading graph nodes |
|
pure virtual |
Set geometric light filter shading graph
Light filters modify light emission for geometric lights. Geometric light filter shading graphs may contain RixSGShaderType::k_LightFilter and RixSGShaderType::k_Pattern nodes. There is no default geometric light filter.
[in] | num | The number of nodes in the shading graph |
[in] | nodes | The geometric light filter shading graph nodes |