Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Depth buffer problem
#1
Hey! Thank you for your patience again )
Have a issue with rendering ice cube with custom shader and obi fluid in the same time. Fluid renders in front of transparent surface. Maybe you know the reason and the solution for it.
Cheers!
       
Reply
#2
(06-12-2022, 05:16 PM)kebab_traume Wrote: Hey! Thank you for your patience again )
Have a issue with rendering ice cube with custom shader and obi fluid in the same time. Fluid renders in front of transparent surface. Maybe you know the reason and the solution for it.
Cheers!

Hi,

My guess would be that your shader isn’t in the correct render queue, it’s drawn before other transparent objects and writing in the depth buffer.

Set your shader to the “Transparent” render queue, that should fix it.

Note its impossible to correctly render intersecting transparent objects using regular alpha blending in rasterization, though.

Kind regards,
Reply