Skip to content

Commit

Permalink
Selection highlighting for MaterialX shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
vlasovi committed Sep 30, 2021
1 parent 0cbebd0 commit 2081939
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 @@ -420,6 +420,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 2081939

Please sign in to comment.