Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple renderers in URP
#3
(13-02-2021, 08:26 PM)josemendez Wrote: Hi there,

From within a URP Renderer feature there's no way to access scene objects, other than use FindObjectsOfType() or filter by layer/tag. The reason for this is that renderer features are project assets, and as such, they're not tied to any scene in particular and they can't hold references to GameObjects. I know this is less than ideal, but it's just how URP works Triste. You can't specify individual renderers as you can in the built-in pipeline, so you're limited to a single fluid material. Note you can still change fluid color using the particle renderer, or individual per-particle colors.

In the built-in pipeline you could just place a script in any object in the scene, get references to objects that should be rendered in a special way and just latch onto the render pipeline to render these objects. This isn't possible in URP as of now. See: https://forum.unity.com/threads/srp-rend...sk.988202/
Thanks for the thoughtful reply, I may need to look into switching back to built in for this project as different fluid transparencies was an important feature.
Reply


Messages In This Thread
Multiple renderers in URP - by corel - 13-02-2021, 04:31 AM
RE: Multiple renderers in URP - by josemendez - 13-02-2021, 08:26 PM
RE: Multiple renderers in URP - by corel - 15-02-2021, 09:15 AM
RE: Multiple renderers in URP - by josemendez - 15-02-2021, 09:27 AM
RE: Multiple renderers in URP - by corel - 16-02-2021, 09:13 AM