Skip to content

Commit 2395fb0

Browse files
authored
HYDRA-1821 : Fix MSAA with 2 passes (#349)
1 parent 112a8c0 commit 2395fb0

File tree

272 files changed

+142
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+142
-222
lines changed

lib/hydra-viewport-toolbox

lib/mayaHydra/mayaPlugin/renderOverride.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,16 +1031,9 @@ MStatus MtohRenderOverride::Render(
10311031
const int previousPassIndex = (visibleIdx > 0) ?framePassesVisible[visibleIdx - 1] : 0;
10321032
hvt::FramePassPtr& previousPass = _GetFramePass(previousPassIndex);
10331033
if (previousPass) {
1034-
std::shared_ptr<PXR_NS::HdRenderBuffer> colorBuffer
1035-
= hvt::CreateRenderBufferProxy(previousPass, PXR_NS::HdAovTokens->color);
1036-
1037-
std::shared_ptr<PXR_NS::HdRenderBuffer> depthBuffer
1038-
= hvt::CreateRenderBufferProxy(previousPass, PXR_NS::HdAovTokens->depth);
1039-
1040-
std::vector<std::pair<PXR_NS::TfToken const&, PXR_NS::HdRenderBuffer*>> inputAOVs
1041-
= { { PXR_NS::HdAovTokens->color, colorBuffer.get() },
1042-
{ PXR_NS::HdAovTokens->depth, depthBuffer.get() }
1043-
};
1034+
hvt::RenderBufferBindings inputAOVs = previousPass->GetRenderBufferBindingsForNextPass(
1035+
{ PXR_NS::HdAovTokens->color, PXR_NS::HdAovTokens->depth }
1036+
);
10441037

10451038
HdTaskSharedPtrVector passTasks = currentPass->GetRenderTasks(inputAOVs);
10461039

Binary file not shown.
Binary file not shown.
165 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)