function getMaterialData(data, materialData) {
  materialData.color.set(data.color);
  materialData.specular.set(data.specular);
  materialData.emissive.set(data.emissive);
  materialData.emissiveIntensity = data.emissiveIntensity;
  materialData.fog = data.fog;
  materialData.transparent = data.transparent;
  materialData.wireframe = data.wireframe;
  materialData.wireframeLinewidth = data.wireframeLinewidth;
  materialData.shininess = data.shininess;
  materialData.flatShading = data.flatShading;
  materialData.wireframe = data.wireframe;
  materialData.wireframeLinewidth = data.wireframeLinewidth;
  materialData.reflectivity = data.reflectivity;
  materialData.refractionRatio = data.refractionRatio;
  switch (data.combine) {
    case 'mix':
      materialData.combine = three__WEBPACK_IMPORTED_MODULE_2__.MixOperation;
      break;
    case 'multiply':
      materialData.combine = three__WEBPACK_IMPORTED_MODULE_2__.MultiplyOperation;
      break;
    case 'add':
      materialData.combine = three__WEBPACK_IMPORTED_MODULE_2__.AddOperation;
      break;
  }
  if (data.normalMap) {
    materialData.normalScale = data.normalScale;
  }
  if (data.ambientOcclusionMap) {
    materialData.aoMapIntensity = data.ambientOcclusionMapIntensity;
  }
  if (data.bumpMap) {
    materialData.bumpScale = data.bumpMapScale;
  }
  if (data.displacementMap) {
    materialData.displacementScale = data.displacementScale;
    materialData.displacementBias = data.displacementBias;
  }
  return materialData;
}
Builds and normalize material data, normalizing stuff along the way.

@param {object} data - Material data.
@param {object} materialData - Object to use.
@returns {object} Updated materialData.