diff --git a/src/ShaderGen/common/MFCommon.h b/src/ShaderGen/common/MFCommon.h index a25ccf83..519d13e5 100644 --- a/src/ShaderGen/common/MFCommon.h +++ b/src/ShaderGen/common/MFCommon.h @@ -25,13 +25,17 @@ mat4 GetJointMatrix() } )"; + constexpr const char HandoverMI[]=R"( +void HandoverMI() +{ + Output.MaterialInstanceID=MaterialInstanceID; +})"; + constexpr const char GetMI[]=R"( MaterialInstance GetMI() { - return mtl.mi[MaterialInstanceID]; + return mtl.mi[Input.MaterialInstanceID]; } )"; - - }//namespace func STD_MTL_NAMESPACE_END