Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Render fluid after all opaque on Quest only
#7
(01-07-2024, 03:32 PM)alexisss Wrote: Is there a way to adjust the rendering layer of the fluid in Unity so it appears behind other objects, even if they are opaque, while using the Universal Render Pipeline with Lit materials?
https://cxfileexplorerapk.net/

Hi,

There's no such thing as a "render layer" that would allow objects to always appear behind other objects under all circumstances. In rendering, the chronological order in which objects are rendered and their actual overlap order on the screen are two completely different things.

Overlap (whether an object appears in front of or behind another object) depends on how the object uses the depth buffer: whether it reads from it, which kind of test it performs to determine whether it should be visible or not, whether other objects write to it, etc. Only in cases where an object does not use the depth buffer does rendering order become important: objects drawn later will obscure objects already drawn to the screen.

You must be a lot more specific about your use case, as it may involve changing the fluid render pipeline, the fluid shader, or even other object's shaders: do you want fluid to alway appear behind all opaque objects, only some specific objects, must this happen regardless of relative distance to camera (depth)? how about transparent objects?

kind regards,
Reply


Messages In This Thread
RE: Render fluid after all opaque on Quest only - by josemendez - 08-07-2024, 12:20 PM