MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / SetMaterial

Method SetMaterial

Hydrogent/src/HnDrawItem.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void HnDrawItem::SetMaterial(const HnMaterial& Material)
49{
50 m_pMaterial = &Material;
51 bool IsFallbackMaterial = Material.GetId().IsEmpty();
52 SetMaterialTag(!IsFallbackMaterial ? Material.GetTag() : HnMaterialTagTokens->defaultTag);
53}
54
55} // namespace USD
56

Callers 1

SetDrawItemMaterialFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected