addNormalTextureToPbrMaterial#
Fully qualified name: usdex::core::addNormalTextureToPbrMaterial
- bool usdex::core::addNormalTextureToPbrMaterial(
- pxr::UsdShadeMaterial &material,
- const pxr::SdfAssetPath &texturePath,
Adds a normals 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