Hello,
as I was searching the web quite long on this topic I thought I should share this piece of information on how to implement a on-the-fly generated 2D selection outline shader for use with LibGDX. (but it will work with other frameworks as well with some minor modifications)
Enjoy: http://www.allpiper.com/2d-selection-outline-shader-in-libgdx/