Restructure the lookup table.
Sum vector manually.
Add LUT texture and generator code.

Generator code still very hacky, should be cleaned up.