Obi Official Forum

Full Version: Fluid keeps blinking invisible with Depth Tex enabled
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The fluid keeps blinking invisible if I enable Depth Texture on URP's render asset.

(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!
(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.
(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.