The Radial HUD shader for the player ship. It is not using any textures - making it pixel-perfect at all resolutions.
only a few of these parameters are actually dynamic, most are constant in the game for performance reasons
the part responsible for the segmentation
basic ring part (used a multiply instead of a ceil for AA reasons)
cutting out parts of the ring
turns the healthbar solid once the player accumulated a certain amount of health segments to keep it readable
the part responsible for the colors of the hud
the radial gradient function