How Rotation Gizmo rendered top of everything ?

I need a solution for rendering priority. When I draw a custom visualizer class with PDI whatever setting I use my rendering’s some parts becomes dashed what it falls behind any mesh. I noticed same thing for Gizmos but not for Rotate gizmo.

I think this can be a solution but I do not know how Rotate gizmo is rendered. One thing I noticed If uncheck Translucency from show Bar. Some parts of Rotate gizmo disappear. Remaining parts of Rotate gizmo rendered just like move or scale gizmo. Anyone know about this ?

This is generally done in material, I use something like this:

image

This is just the fundamental bit, ofc.


You can still see the cube “gizmo” but I get to choose how it looks like once occluded.