How to ignore depth information of a line

Hi. I want to draw lines and ignore their depth information. If an object is in front of the line, the line should be drawn nevertheless. How can I achieve this?

go to material and set boolean “DepthTest” to false,

Material.getAdditionalRenderState().setDepthTest(false);



Yes, thats it. Thanks!