Borders now fully work. Also re-organized fragment shader code.