diff --git a/source/MaterialXGenShader/ShaderGraph.cpp b/source/MaterialXGenShader/ShaderGraph.cpp index b95a9471e9..c2d7375577 100644 --- a/source/MaterialXGenShader/ShaderGraph.cpp +++ b/source/MaterialXGenShader/ShaderGraph.cpp @@ -654,6 +654,8 @@ void ShaderGraph::applyInputTransforms(ConstNodePtr node, ShaderNodePtr shaderNo } } + ShaderInput* shaderInput = shaderNode->getInput(input->getName()); + shaderInput->setColorSpace(sourceColorSpace); ShaderOutput* shaderOutput = shaderNode->getOutput(); populateColorTransformMap(colorManagementSystem, shaderOutput, sourceColorSpace, targetColorSpace, false); populateUnitTransformMap(unitSystem, shaderOutput, input, targetDistanceUnit, false);