Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
PR Code Suggestions ✨Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
|||||||||||
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## master #657 +/- ##
=======================================
Coverage 36.05% 36.06%
=======================================
Files 277 278 +1
Lines 34909 34916 +7
=======================================
+ Hits 12588 12592 +4
- Misses 22321 22324 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
|
||
| namespace UnityEngine.ProBuilder | ||
| { | ||
| class CustomPassFeature : ScriptableRendererFeature |
There was a problem hiding this comment.
I should remove this, it's not in the plan to expose the render pass in the UI.
| int _height = autoSize ? (int)camera.pixelRect.height : height; | ||
|
|
||
| GameObject go = new GameObject(); | ||
| Camera renderCam = go.AddComponent<Camera>(); |
There was a problem hiding this comment.
Todo: remove copy of camera, no longer needed with the RenderRequest API.
Purpose of this PR
This PR updates the picking system so it properly runs on URP. We used to use an old hack in URP project: the picking system would force the BiRP to run temporarly to render the lookup texture. This is no longer something we can do due to some others packages that could react to the change of RP asset changes (example: VFX graph).
To solve this and since URP now allows render pass injection, I've created our own URP render pass and inject it when we run the picking system. URP uses HLSL so I had to migrate our CG shaders to HLSL.
Manually tested.
Links
Jira: UUM-133859