I came across a fantastic video on this, does exactly what I need. I colored the alpha wrong but it was no big deal to fix.
Only problem left is that I have some ugly aliasing as a result.