[HDRP][DXR] Skip adding higher level Renderer to RTAS if null #6016
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
Fix for this one. (forum thread)
This PR skips adding the renderer to the RTAS if it's null which can happen in large projects.
The only "bad things" is that the fail is silent and ray traced effects won't be applied on the LOD level if it does not have a renderer.
The Check for RayTracing issue menu item still shows which gameobject has issues if you want to fix it.
Gif shows that now we can have missing renderer and still have a render. The RTAO will show only on the third level lod which is the only one that has a renderer. Still a bad setup but no errors and we keep the rendering working.

Check scene content for raytracing setup issues

Testing status
Comments to reviewers
N/A