Added multi channel texture support.