Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mtoh] Split pre and post scene passes so camera guides go above Hydra. #526

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/mayaUsd/render/mayaToHydra/renderOverrideUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HdMayaSceneRender : public MHWRender::MSceneRender {

MSceneFilterOption renderFilterOverride() override {
return _drawSelectionOverlay
? kRenderUIItems
? kRenderPreSceneUIItems
: MHWRender::MSceneRender::renderFilterOverride();
}

Expand Down Expand Up @@ -66,13 +66,18 @@ class HdMayaManipulatorRender : public MHWRender::MSceneRender {
: MHWRender::MSceneRender(name) {}

MUint64 getObjectTypeExclusions() override {
return ~MHWRender::MFrameContext::kExcludeManipulators;
// kExcludeHoldOuts is used so that camera-guides are rendered here.
return ~(kExcludeManipulators | kExcludeHoldOuts);
}

MHWRender::MClearOperation& clearOperation() override {
mClearOperation.setMask(MHWRender::MClearOperation::kClearNone);
return mClearOperation;
}

MSceneFilterOption renderFilterOverride() override {
return kRenderPostSceneUIItems;
}
};

class HdMayaRender : public MHWRender::MUserRenderOperation {
Expand Down