Materials on GUI

I’m trying to make a non-linear filling health orb, but I have one problem. I have a material with the reveal shader from the wiki, and so far that is working alright. My problem is, is there a better way to put the material orb on screen other than putting a plane on the screen in front of the camera? It cuts behind close walls, doesn’t easily scale with different resolutions etc, and this is a huge pain to work with.

check graphics.drawtexture one of its overloaded function supports a material to be passed as argument