omni::connect::core::createMaterial
Defined in omni/connect/core/MaterialAlgo.h
-
pxr::UsdShadeMaterial omni::connect::core::createMaterial(pxr::UsdPrim parent, const std::string &name)
Create a UsdShadeMaterial as a child of the UsdPrim argument.
- Parameters
parent – Parent UsdPrim for the material to be created
name – Name of the material to be created
- Returns
The newly created UsdShadeMaterial. Returns an Invalid prim on error.