How to get a shader to draw after everything else?

I’m using this wireframe shader, unity-wireframe/Packages/unity-wireframe/Runtime/Shaders/WireframeTransparent.shader at master · Chaser324/unity-wireframe · GitHub.

And I would like to have it draw after everything else but not sure how to do that. I’m using BIRP. I’ve tried increasing the material render queue to 4000+ but it doesn’t work.

As seen in this picture I would like it to display the full cube without clipping into other geometry.

EDIT: Or is there any way to draw the unity gizmos in play mode and not just the editor?

Try adding ZTest Off or ZTest Always on line 23 of that shader and keep the render queue high. Unity - Manual: ZTest command in ShaderLab reference

it worked thanks clownhunter

1 Like