How do I disable depth testing on a mesh?

Hi all,
I’m just getting started with BabylonJS, and I was wondering, is there a way to disable depth testing on a mesh? I’ve looked around, but I’m not seeing anything in the docs.

Thanks & Cheers,
Chris

Not sure if there is a better way, but you can always call:

engine.setDepthFunction(engine._gl.ALWAYS);

either in the before draw observable, or by overriding the mesh draw function and calling it in that.

If you’re just wanting something to draw on top of everything else though, put in in a higher rendering group id.

1 Like

That’s a great help! Thank You!