From f02f5879e3c2373983c768b13303d786a258059e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolaj=20Z=C3=B8llner?= Date: Fri, 3 Sep 2021 15:08:34 +0200 Subject: [PATCH 1/2] ShadowCaster now requires updated version on normals if changed in the vertex shader. --- .../Editor/ShaderGraph/Targets/UniversalTarget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs b/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs index ce9e84024f9..bc1518f72c3 100644 --- a/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs @@ -1006,7 +1006,7 @@ static class CoreRequiredFields { public static readonly FieldCollection ShadowCaster = new FieldCollection() { - StructFields.Attributes.normalOS, + StructFields.Varyings.normalWS, }; public static readonly FieldCollection DepthNormals = new FieldCollection() From 43af2c72ca8f4460ecdbbc88cadd5592a1431d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolaj=20Z=C3=B8llner?= Date: Fri, 3 Sep 2021 15:41:00 +0200 Subject: [PATCH 2/2] Updated changelog --- com.unity.render-pipelines.universal/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index c4427062974..4b3b0256c46 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -176,6 +176,7 @@ The version number for this package has increased due to a version update of a r - Support undo of URP Global Settings asset assignation (case 1342987). - Removed unsupported fields from Presets of Light and Camera [case 1335979]. - Fixed graphical artefact when terrain height map is used with rendering layer mask for lighting. +- Fixed ShadowCaster now requires varying normalWS to include changed normals from vertex shader in shader graph. ### Changed - Change Asset/Create/Shader/Universal Render Pipeline/Lit Shader Graph to Asset/Create/Shader Graph/URP/Lit Shader Graph