diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.Migration.cs b/com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.Migration.cs index d5ec80c88ee..ac992e052df 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.Migration.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitSubTarget.Migration.cs @@ -104,6 +104,9 @@ void UpgradeHDLitMasterNode(HDLitMasterNode1 hdLitMasterNode, out Dictionary() @@ -63,6 +64,9 @@ void UpgradeHDUnlitMasterNode(HDUnlitMasterNode1 hdUnlitMasterNode, out Dictiona systemData.surfaceType = (SurfaceType)hdUnlitMasterNode.m_SurfaceType; systemData.blendMode = HDSubShaderUtilities.UpgradeLegacyAlphaModeToBlendMode((int)hdUnlitMasterNode.m_AlphaMode); systemData.renderingPass = hdUnlitMasterNode.m_RenderingPass; + // Patch rendering pass in case the master node had an old configuration + if (systemData.renderingPass == HDRenderQueue.RenderQueueType.Background) + systemData.renderingPass = HDRenderQueue.RenderQueueType.Opaque; systemData.alphaTest = hdUnlitMasterNode.m_AlphaTest; systemData.sortPriority = hdUnlitMasterNode.m_SortPriority; systemData.doubleSidedMode = hdUnlitMasterNode.m_DoubleSided ? DoubleSidedMode.Enabled : DoubleSidedMode.Disabled;