Pretty much a copy of the Vulkan border shader. A notable change is that the input arguments are changed, because GL gets confused if you put a mat4 at the end.