From 1f6882c20ca42deb9290dbe82e3110b757db4369 Mon Sep 17 00:00:00 2001 From: Remi Chapelain Date: Thu, 14 Oct 2021 11:06:38 +0200 Subject: [PATCH 1/2] skip adding renderer if null --- .../Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs index 78039c1a7cf..c6b25c481d3 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs @@ -506,6 +506,7 @@ internal void BuildRayTracingAccelerationStructure(HDCamera hdCamera) { // Fetch the renderer that we are interested in Renderer currentRenderer = currentLOD.renderers[rendererIdx]; + if (currentRenderer == null) continue; // This objects should but included into the RAS AddInstanceToRAS(currentRenderer, From a6c4550ada06e11bbd3b9764f518099f4d417ac2 Mon Sep 17 00:00:00 2001 From: Remi Chapelain Date: Thu, 14 Oct 2021 11:17:32 +0200 Subject: [PATCH 2/2] changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 82907fe0ea4..fb27dc08221 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed and optimize distance shadowmask fade. - Fix API warnings in Matcap mode on Metal. - Fix D3D validation layer errors w.r.t shadow textures when an atlas is not used. +- Fix missing renderer in LOD when building RTAS issue (case 1372965). ## [13.0.0] - 2021-09-01