code: function (data) {
      var material = this.material;
      data = getMaterialData(data);
      Object.keys(data).forEach(function (key) {
        material[key] = data[key];
      });
    }
docs: Updating existing material.
  
  @param {object} data - Material component data.
  @returns {object} Material.