addOpacityTextureToPbrMaterial#
Fully qualified name: usdex::core::addOpacityTextureToPbrMaterial
- bool usdex::core::addOpacityTextureToPbrMaterial(
- pxr::UsdShadeMaterial &material,
- const pxr::SdfAssetPath &texturePath,
Adds a single channel opacity texture to an OpenPBR material.
It is expected that the material was created by
definePbrMaterial()The texture will be sampled using texture coordinates from the default UV set (generally named
primvars:st).- Parameters:
material – The material prim
texturePath – The
SdfAssetPathto the texture file
- Returns:
Whether or not the texture was added to the material