omni::connect::core::addOrmTextureToPbrMaterial
Defined in omni/connect/core/MaterialAlgo.h
-
bool omni::connect::core::addOrmTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)
Adds an ORM (occlusion, roughness, metallic) texture to the PBR material.
It is expected that the material was created by the Connect SDK’s defineOmniPbrMaterial() function.
Note
The material prim’s “Roughness” and “Metallic” inputs will be removed and replaced with “ORMTexture”. Due to the input removal this function should be used at initial authoring time rather than in a stronger layer.
- 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