copy method

  1. @override
MeshBasicMaterial copy(
  1. Material source
)
override

Copy the parameters from the passed material into this material.

Implementation

@override
MeshBasicMaterial copy(Material source) {
  super.copy(source);

  color.setFrom(source.color);

  map = source.map;

  lightMap = source.lightMap;
  lightMapIntensity = source.lightMapIntensity;

  aoMap = source.aoMap;
  aoMapIntensity = source.aoMapIntensity;

  specularMap = source.specularMap;

  alphaMap = source.alphaMap;

  envMap = source.envMap;
  combine = source.combine;
  reflectivity = source.reflectivity;
  refractionRatio = source.refractionRatio;

  wireframe = source.wireframe;
  wireframeLinewidth = source.wireframeLinewidth;
  wireframeLinecap = source.wireframeLinecap;
  wireframeLinejoin = source.wireframeLinejoin;

  fog = source.fog;

  return this;
}