Unity-Technologies / UniversalRenderingExamples

This project contains a collection of Custom Renderer examples. This will be updated as we refine the feature and add more options.
2.03k stars 412 forks source link

URP Custom Render Feature / Pass Breaks Based on Quality #45

Closed justingden closed 3 years ago

justingden commented 3 years ago

I have been trying to build my own URP customer render feature / pass, but while it creates the feature, it will never call AddRenderPasses to add the pass, unless you remove the render pipeline asset from Quality.

To fix the problem, you must: Goto the setting: Project Settings > Quality > Rendering Set the Render Pipeline Asset to None I can't see any relevant Quality settings that might turn on/off render features.

image

This capability works fine in Universal Rendering Examples from Unity on GitHub. I created a simple project to try and enable the specific Sobel Outline pass. I worked through every setting and configuration to finally found that is the only difference with the examples project and that solved this.

Why is this happening? Is this a bug or known behavior?

If it is a known behavior, how do you suggest replacing the functionality of the Quality capability?

My Versions Unity 2020.2.0f1 URP 10.2.2

Thank you so much for any help with this.

justingden commented 3 years ago

After a complete system restart, I can no longer cause this issue. Both with or without the quality setting of the render asset, the AddRenderPasses is operating correctly. It was probably just a bad state with my graphics card or dev environment, but unless I see this reproduced again in a reliable way, I don't believe it is an actual issue.