addEmissiveColorToPreviewMaterial#

Fully qualified name: usdex::core::addEmissiveColorToPreviewMaterial

bool usdex::core::addEmissiveColorToPreviewMaterial(
pxr::UsdShadeMaterial &material,
const pxr::GfVec3f &color,
)#

Adds an emissive color to a preview material.

It is expected that the material was created by definePreviewMaterial()

Parameters:
  • material – The material prim

  • color – The emissive color

Returns:

Whether or not the emissive color was added to the material