Navigation
API > API/Plugins > API/Plugins/InterchangeImport > API/Plugins/InterchangeImport/MaterialX > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils/FMaterialXSurfac-
References
| Module | InterchangeImport |
| Header | /Engine/Plugins/Interchange/Runtime/Source/Import/Public/MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h |
| Include | #include "MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h" |
template<typename T>
bool ConnectNodeOutputToInput
(
const char * InputName,
UInterchangeShaderNode * ShaderNode,
const FString & InputShaderName,
T DefaultValue,
bool bIsTangentSpaceInput
)
Remarks
Connect an output either from a node name or a node graph from a MaterialX input to the shader node.
Parameters
| Name | Description |
|---|---|
| InputName | The name of the input of the SurfaceShaderNode to retrieve |
| ShaderNode | The Interchange shader node to connect the MaterialX's node or node graph to |
| InputShaderName | The name of the input of the shader node to connect to |
| DefaultValue | The default value of the MaterialX input |
| bIsTangentSpaceInput | Set the tangent space along the path of an input |
| bUseDefaultValue | Usually we want to avoid creating default values on direct inputs of shaders (StandardSurface, OpenPBR), but some shaders (UsdPreviewSurface) we need to decide that at run-time |