diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 50bf4175d3c..dc5b9538800 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -163,6 +163,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed after post process rendering pass options not showing for unlit ShaderGraphs. - Fixed a migration issue with the rendering queue in ShaderGraph when upgrading to 10.x; - Fixed null reference in the Undo callback of the graphics compositor +- Fixed cullmode for SceneSelectionPass. ### Changed - Preparation pass for RTSSShadows to be supported by render graph. diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDTarget.cs b/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDTarget.cs index 4abc3a71e97..63032ae8b16 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDTarget.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDTarget.cs @@ -596,6 +596,7 @@ public static class Uniforms public static RenderStateCollection SceneSelection = new RenderStateCollection { + { RenderState.Cull(Cull.Off) }, { RenderState.ColorMask("ColorMask 0") }, }; diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader index a9f78c77f0e..e22d60871c9 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader @@ -221,7 +221,7 @@ Shader "HDRP/AxF" Name "SceneSelectionPass" Tags { "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off HLSLPROGRAM diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLit.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLit.shader index e76a18f01ba..96062fd3663 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLit.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLit.shader @@ -528,7 +528,7 @@ Shader "HDRP/LayeredLit" Name "SceneSelectionPass" Tags{ "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off HLSLPROGRAM diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLitTessellation.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLitTessellation.shader index 2e032c70e79..da0726989bd 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLitTessellation.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/LayeredLit/LayeredLitTessellation.shader @@ -546,7 +546,7 @@ Shader "HDRP/LayeredLitTessellation" Name "SceneSelectionPass" Tags{ "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off ZWrite On diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/Lit.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/Lit.shader index ec0a2c2c6b3..dca1e9f2cd8 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/Lit.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/Lit.shader @@ -356,7 +356,7 @@ Shader "HDRP/Lit" Name "SceneSelectionPass" Tags { "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off HLSLPROGRAM diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/LitTessellation.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/LitTessellation.shader index 94dfc7edcb2..ae72203e1ca 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/LitTessellation.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/Lit/LitTessellation.shader @@ -370,7 +370,7 @@ Shader "HDRP/LitTessellation" Name "SceneSelectionPass" Tags { "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off HLSLPROGRAM diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/TerrainLit/TerrainLit.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/TerrainLit/TerrainLit.shader index 7537dc128dd..bbecdd8688c 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/TerrainLit/TerrainLit.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/TerrainLit/TerrainLit.shader @@ -271,7 +271,7 @@ Shader "HDRP/TerrainLit" Name "SceneSelectionPass" Tags { "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off HLSLPROGRAM diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/Unlit/Unlit.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/Unlit/Unlit.shader index 23b591aa62f..3da0773be9f 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/Unlit/Unlit.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/Unlit/Unlit.shader @@ -150,7 +150,7 @@ Shader "HDRP/Unlit" Name "SceneSelectionPass" Tags{ "LightMode" = "SceneSelectionPass" } - Cull[_CullMode] + Cull Off ZWrite On