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

Autodesk: Set Target Colorspace on context #3482

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
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
6 changes: 2 additions & 4 deletions pxr/imaging/hdSt/materialXFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ HdSt_GenMaterialXShader(
cms->loadLibrary(stdLibraries);
mxContext.getShaderGenerator().setColorManagementSystem(cms);

// Set the colorspace
// XXX: This is the equivalent of the default source colorSpace, which does
// not yet have a schema and is therefore not yet accessable here
mxDoc->setColorSpace("lin_rec709");
// Set the target colorspace
mxContext.getOptions().targetColorSpaceOverride = "lin_rec709";

// Add the Direct Light mtlx file to the mxDoc
mx::DocumentPtr lightDoc = mx::createDocument();
Expand Down