From ac50b302b0f5f1f4b070d08ebbce361eac291ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolaj=20Z=C3=B8llner?= Date: Fri, 8 Oct 2021 09:52:41 +0200 Subject: [PATCH] Fixed shadergraph not having updated normals for the shadow caster --- com.unity.render-pipelines.universal/CHANGELOG.md | 1 + .../Editor/ShaderGraph/Targets/UniversalTarget.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index 6f5ba23cbde..ab3ae284e6d 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -121,6 +121,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - VFX: Fixed OpenGL soft particles fallback when depth texture isn't available - Fixed Opacity as Density blending artifacts on Terrain that that caused Terrain to have modified splat weights of zero in some areas and greater than one in others. - UniversalRenderPipeineAsset can now use multi-edit. +- Fixed ShaderGraph needing updated normals for ShadowCaster in URP. ## [10.2.0] - 2020-10-19 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 a7d01531f8b..ff96af8c2f8 100644 --- a/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs @@ -429,7 +429,7 @@ static class CoreRequiredFields { public static readonly FieldCollection ShadowCaster = new FieldCollection() { - StructFields.Attributes.normalOS, + StructFields.Varyings.normalWS, }; } #endregion