Added multi-texture support.