From 8769f03a6c5106015b6215266965dcca6b0c4be3 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 30 Jun 2020 19:04:29 +0200 Subject: [PATCH 1/2] Update emissive game object layer mask on validation --- .../Runtime/Lighting/Light/HDAdditionalLightData.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs index 1daa053dd7f..95a3c95225d 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs @@ -2350,6 +2350,11 @@ void OnValidate() DisableCachedShadowSlot(); m_ShadowMapRenderedSinceLastRequest = false; + if (emissiveMeshRenderer != null && !emissiveMeshRenderer.Equals(null)) + { + emissiveMeshRenderer.gameObject.layer = m_AreaLightEmissiveMeshLayer; + } + #if UNITY_EDITOR // If modification are due to change on prefab asset that are non overridden on this prefab instance if (PrefabUtility.IsPartOfPrefabInstance(this) && ((PrefabUtility.GetCorrespondingObjectFromOriginalSource(this) as HDAdditionalLightData)?.needRefreshPrefabInstanceEmissiveMeshes ?? false)) From c6bb2f3d523c7a2558825f32460e402b10a53837 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Thu, 2 Jul 2020 09:59:58 +0200 Subject: [PATCH 2/2] changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 4c479b530fb..91888dad881 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -1,9 +1,15 @@ -# Changelog +# Changelog All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fixed issue with culling layer mask of area light's emissive mesh. + ## [7.4.0] - 2020-05-22 ### Added