You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geom Prim(e.g. GeomMesh) has a materialBinding class variable, but its not enough just lookup it, since parent node(non Geom Prim, e.g. Xform) may contain materialBinding, which we need manually lookup from .props and do type check if it is defined as Relationship.
Geom Prim(e.g. GeomMesh) has a
materialBinding
class variable, but its not enough just lookup it, since parent node(non Geom Prim, e.g. Xform) may containmaterialBinding
, which we need manually lookup from.props
and do type check if it is defined as Relationship.#39
We need handy
materialBinding
access API in Tydra.MaterialBinding
https://graphics.pixar.com/usd/release/api/class_usd_shade_material_binding_a_p_i.html
API in Tydra may be something like:
tydra::GetMaterialBindingRelationship(const Stage &stage, const Prim &prim)
Expected behavior
MaterialBindingAPI
is activated(authored)), return itbindMaterialAs
Details
https://graphics.pixar.com/usd/release/wp_usdshade.html#material-resolve-determining-the-bound-material-for-any-geometry-prim
Discussion and Optional
The text was updated successfully, but these errors were encountered: