_getMaterialAlbedo#
Fully qualified name: usd_optimize::_getMaterialAlbedo
- bool usd_optimize::_getMaterialAlbedo(
- const PXR_NS::UsdShadeMaterial &material,
- ColorValue &colorValue,
Determine a color value that can be used as display color instead of this material.
Use a heuristic on the material to see if it or it’s surface shader prim have an attribute like inputs:diffuseColor, inputs:displayColor or inputs:diffuse_color_constant. If this function returns true then
colorValuewas populated with a valid color.If a color is found then opacity will also be checked for. It will always be reset to 1.0. If a color is found, and subsequently an opacity attribute, then it will be populated.
- Parameters:
material – The material to check
colorValue – Output to populate with color values
- Returns:
Whether a valid color was found.