From 255dc15a11b9fb4f605ff5f3d3d946c20c84dfa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolaj=20Z=C3=B8llner?= Date: Fri, 8 Oct 2021 13:20:32 +0200 Subject: [PATCH] Fixed missing updated normals for shadow caster using shadergraph --- com.unity.render-pipelines.universal/CHANGELOG.md | 5 +++-- .../Editor/ShaderGraph/Targets/UniversalTarget.cs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index 52fe00b8377..c54770f6270 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -6,8 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [10.8.0] - 2021-09-20 -Version Updated -The version number for this package has increased due to a version update of a related graphics package. +### Fixed +- Fixed ShaderGraph needing updated normals for ShadowCaster in URP. + ## [10.7.0] - 2021-07-02 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 23d074cf5d9..acc94454ee5 100644 --- a/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs +++ b/com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs @@ -430,7 +430,7 @@ static class CoreRequiredFields { public static readonly FieldCollection ShadowCaster = new FieldCollection() { - StructFields.Attributes.normalOS, + StructFields.Varyings.normalWS, }; } #endregion @@ -845,4 +845,4 @@ static class CoreFields public static readonly FieldDescriptor UseLegacySpriteBlocks = new FieldDescriptor("Universal", "UseLegacySpriteBlocks", "UNIVERSAL_USELEGACYSPRITEBLOCKS"); } #endregion -} \ No newline at end of file +}