Skip to content

Commit

Permalink
Merge pull request #1647 from vlasovi/ogs/mtlx_selection_highlighting
Browse files Browse the repository at this point in the history
Enable selection highlighting for MaterialX shaders in HdStorm

(Internal change: 2204598)
  • Loading branch information
pixar-oss committed Dec 17, 2021
2 parents e2d8835 + 2081939 commit 7ecd4e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pxr/imaging/hdSt/materialXShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ HdStMaterialXShaderGen::_EmitMxSurfaceShader(
emitLine(finalOutputReturn + outputValue, mxStage);
}
}

// Emit color overrides (mainly for selection highlighting)
emitLine("mxOut = ApplyColorOverrides(mxOut)", mxStage);
}
emitLine("return mxOut", mxStage);

Expand Down

0 comments on commit 7ecd4e9

Please sign in to comment.