Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fluid keeps blinking invisible with Depth Tex enabled
#1
The fluid keeps blinking invisible if I enable Depth Texture on URP's render asset.

Reply
#2
(07-12-2022, 02:19 AM)7Dev.io Wrote: The fluid keeps blinking invisible if I enable Depth Texture on URP's render asset.


Hi,

So far I've been unable to reproduce this. I take it that you're using fluid renderer feature on your URP pipeline, and then enabled opaque and depth textures, correct?

Which Obi/Unity/URP versions are you using?

thanks!
Reply
#3
(07-12-2022, 10:13 AM)josemendez Wrote: Hi,

So far I've been unable to reproduce this. I take it that you're using fluid renderer feature on your URP pipeline, and then enabled opaque and depth textures, correct?

Which Obi/Unity/URP versions are you using?

thanks!
I figured it out. My depth texture mode was set to after transparents, changing it to after opaques fixed it.
Reply
#4
(07-12-2022, 09:30 PM)7Dev.io Wrote: I figured it out. My depth texture mode was set to after transparents, changing it to after opaques fixed it.

Glad you found the culprit! Makes sense: since the fluid is a transparent object, generating the depth texture after transparents would depth test the fluid against itself, causing z-fighting.
Reply