From 6fa374cc0857e691ba9f5638a379fff741f14cf9 Mon Sep 17 00:00:00 2001 From: Anis Benyoub Date: Fri, 23 Oct 2020 14:25:08 +0200 Subject: [PATCH] Fixed the ray tracing shadow UI being displayed while it shouldn't (case 1286391). --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + .../Editor/Lighting/HDLightUI.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index dad4210a8a2..e123f3b1cad 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -15,6 +15,7 @@ The version number for this package has increased due to a version update of a r ### Fixed - Fixed a null reference exception when creating a diffusion profile asset. - Fixed the diffusion profile not being registered as a dependency of the ShaderGraph. +- Fixed the ray tracing shadow UI being displayed while it shouldn't (case 1286391). ### Changed - Improved the punctual light shadow rescale algorithm. diff --git a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs index 21a7098c64f..c0480c596bb 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs @@ -1085,7 +1085,7 @@ static void DrawShadowMapContent(SerializedHDLight serialized, Editor owner) EditorGUILayout.Slider(serialized.areaLightShadowCone, HDAdditionalLightData.k_MinAreaLightShadowCone, HDAdditionalLightData.k_MaxAreaLightShadowCone, s_Styles.areaLightShadowCone); } - if (HDRenderPipeline.pipelineSupportsRayTracing) + if (HDRenderPipeline.pipelineSupportsRayTracing && HDRenderPipeline.pipelineSupportsScreenSpaceShadows) { bool isPunctual = lightType == HDLightType.Point || (lightType == HDLightType.Spot && serialized.spotLightShape.GetEnumValue() == SpotLightShape.Cone); if (isPunctual || (lightType == HDLightType.Area && serialized.areaLightShape == AreaLightShape.Rectangle))