diff --git a/com.unity.shadergraph/CHANGELOG.md b/com.unity.shadergraph/CHANGELOG.md index d208a303eaf..b89c94eebf7 100644 --- a/com.unity.shadergraph/CHANGELOG.md +++ b/com.unity.shadergraph/CHANGELOG.md @@ -130,6 +130,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed the BuiltIn Target to perform shader variant stripping [1345580] (https://issuetracker.unity3d.com/product/unity/issues/guid/1345580/) - Fixed incorrect warning while using VFXTarget - Fixed a bug with Sprite Targets in ShaderGraph not rendering correctly in game view [1352225] +- Fixed compilation problems on preview shader when using hybrid renderer v2 and property desc override Hybrid Per Instance ## [11.0.0] - 2020-10-21 diff --git a/com.unity.shadergraph/Editor/Generation/Processors/PropertyCollector.cs b/com.unity.shadergraph/Editor/Generation/Processors/PropertyCollector.cs index 108e8eaeaf9..8a36fbb2257 100644 --- a/com.unity.shadergraph/Editor/Generation/Processors/PropertyCollector.cs +++ b/com.unity.shadergraph/Editor/Generation/Processors/PropertyCollector.cs @@ -180,6 +180,7 @@ public void GetPropertiesDeclaration(ShaderStringBuilder builder, GenerationMode builder.AppendLine("#endif"); } builder.AppendLine("CBUFFER_END"); + builder.AppendLine("#define UNITY_ACCESS_HYBRID_INSTANCED_PROP(var, type) var"); return; }