diff --git a/Hydrogent/src/HnRenderPass.cpp b/Hydrogent/src/HnRenderPass.cpp index 0aa98b96..ca043690 100644 --- a/Hydrogent/src/HnRenderPass.cpp +++ b/Hydrogent/src/HnRenderPass.cpp @@ -128,6 +128,9 @@ void HnRenderPass::_Execute(const pxr::HdRenderPassStateSharedPtr& RPState, if (pRPrim == nullptr) continue; + if (!pRPrim->IsVisible()) + continue; + const auto& MaterialId = pRPrim->GetMaterialId(); const pxr::HdSprim* pMaterial = pRenderIndex->GetSprim(pxr::HdPrimTypeTokens->material, MaterialId); if (pMaterial == nullptr)