copy method
Copy the parameters from the passed material into this material.
Implementation
@override
MeshPhongMaterial copy(Material source) {
super.copy(source);
color.setFrom(source.color);
specular!.setFrom(source.specular!);
shininess = source.shininess;
map = source.map;
lightMap = source.lightMap;
lightMapIntensity = source.lightMapIntensity;
aoMap = source.aoMap;
aoMapIntensity = source.aoMapIntensity;
emissive!.setFrom(source.emissive!);
emissiveMap = source.emissiveMap;
emissiveIntensity = source.emissiveIntensity;
bumpMap = source.bumpMap;
bumpScale = source.bumpScale;
normalMap = source.normalMap;
normalMapType = source.normalMapType;
normalScale!.setFrom(source.normalScale!);
displacementMap = source.displacementMap;
displacementScale = source.displacementScale;
displacementBias = source.displacementBias;
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;
flatShading = source.flatShading;
fog = source.fog;
return this;
}