Move blend equation and func to where it is used