code: function getMaterialData (data, materialData) {
    materialData.color.set(data.color);
    materialData.emissive.set(data.emissive);
    materialData.emissiveIntensity = data.emissiveIntensity;
    materialData.fog = data.fog;
    materialData.metalness = data.metalness;
    materialData.roughness = data.roughness;
    materialData.wireframe = data.wireframe;
    materialData.wireframeLinewidth = data.wireframeLinewidth;
  
    if (data.normalMap) { materialData.normalScale = data.normalScale; }
  
    if (data.ambientOcclusionMap) {
      materialData.aoMapIntensity = data.ambientOcclusionMapIntensity;
    }
  
    if (data.displacementMap) {
      materialData.displacementScale = data.displacementScale;
      materialData.displacementBias = data.displacementBias;
    }
  
    return materialData;
  }
docs: 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.