07-12-2022, 02:19 AM
07-12-2022, 10:13 AM
(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, 09:30 PM
(07-12-2022, 10:13 AM)josemendez Wrote: [ -> ]Hi,I figured it out. My depth texture mode was set to after transparents, changing it to after opaques fixed it.
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!
08-12-2022, 10:22 AM
(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.