[UbuntuShape] Added mipmap based anti-aliasing fallback
Some OpenGL implementations not supporting standard derivatives (like the Ubuntu Touch emulator) need a fallback solution. This change implements that using mipmaps. It also implied a change in the way y coordinates are computed allowing to make the distance fields version perfectly anti-aliased under any rotation. Fixes: https://bugs.launchpad.net/bugs/1480199, https://bugs.launchpad.net/bugs/1494272.
Approved by Tim Peeters, PS Jenkins bot.