How do i correct the rendering order of two transparent materials ?

Hi , I am having problems with my space simulation game, when i try to render the shield (depending on the angle) the cockpit window of the ship overlaps with the shield, what i need to do for the in game camera to render those materials in the right order ?

Right order of rendering :


Wrong order of rendering :


Sorting and rendering transparent objects can be a pain sometimes, and different solutions are required for different scenarios. In this case you want the shield to always render after the cockpit. I think you could set the render queue to force that. They are both probably currently set to Transparent so set the shield’s render queue to Transparent+1 and that should fix it.