addNormalTextureToPbrMaterial#
Fully qualified name: usdex::rtx::addNormalTextureToPbrMaterial
- bool usdex::rtx::addNormalTextureToPbrMaterial(
- pxr::UsdShadeMaterial &material,
- const pxr::SdfAssetPath &texturePath,
Adds a normal texture to the PBR material.
It is expected that the material was created by
usdex::rtx::definePbrMaterial()
.- Parameters:
material – The UsdShadeMaterial prim to add the texture
texturePath – The SdfAssetPath to the texture file
- Returns:
Whether or not the texture was added to the material