Draw mesh on top of others

Hi guys,

is there a way to draw a mesh on top of others with layers for example? I see that there is a layer property in the meshInstance (pc.LAYER_HUD, …), but changing the layer doesn’t seem to do anything. We need to put a mesh in front of another mesh and to avoid the perspective effect, we need to put the 2 meshes at the exact same Z position. (Orthographic camera is not an option).

Thanks a lot!
David

Try disabling Depth Test and Depth Write for a material on that mesh.
But changing layer property on meshInstance shall work too, try using other layers: pc.LAYER_GIZMO for example.