First steps towards multiple texture support.