24 #ifndef EXT_RMANPKG_24_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H 25 #define EXT_RMANPKG_24_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H 28 #include "pxr/imaging/hd/material.h" 29 #include "hdPrman/matfiltFilterChain.h" 32 PXR_NAMESPACE_OPEN_SCOPE
35 class HdPrman_RenderParam;
50 HdDirtyBits *dirtyBits)
override;
57 riley::MaterialId GetMaterialId()
const {
return _materialId; }
58 riley::DisplacementId GetDisplacementId()
const {
return _displacementId; }
82 void _ResetMaterial(HdPrman_RenderParam *renderParam);
84 riley::MaterialId _materialId;
85 riley::DisplacementId _displacementId;
94 HdPrman_ConvertHdMaterialNetwork2ToRmanNodes(
97 std::vector<riley::ShadingNode> *result);
103 HdPrmanMaterial_GetFallbackSurfaceMaterialNetwork();
105 PXR_NAMESPACE_CLOSE_SCOPE
107 #endif // EXT_RMANPKG_24_0_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_MATERIAL_H static MatfiltFilterChain GetFilterChain()
Get material filtering chain.
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
void Finalize(HdRenderParam *renderParam) override
Finalizes object resources.
Adapter class providing data exchange with the client scene graph.
HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
static void SetFilterChain(MatfiltFilterChain const &chain)
Set material filtering chain.
std::vector< TfToken > TfTokenVector
Convenience types.
A path value used to locate objects in layers or scenegraphs.
A representation for materials (including displacement) in prman.
HdMaterialNetwork2 const & GetMaterialNetwork() const
Return the material network after filtering.
Hydra Schema for a material object.
static TfTokenVector const & GetShaderSourceTypes()
Return the static list of tokens supported.
bool IsValid() const
Return true if this material is valid.
Container of nodes and top-level terminal connections.
static bool GetUseSceneIndexForMatfilt()
Returns whether it's possible and preferred to use scene indices in place of matfilt callbacks.