copy method
Implementation
@override
MeshPhysicalMaterial copy(Material source) {
super.copy(source);
defines = {'STANDARD': '', 'PHYSICAL': ''};
clearcoat = source.clearcoat;
clearcoatMap = source.clearcoatMap;
clearcoatRoughness = source.clearcoatRoughness;
clearcoatRoughnessMap = source.clearcoatRoughnessMap;
clearcoatNormalMap = source.clearcoatNormalMap;
clearcoatNormalScale!.copy(source.clearcoatNormalScale!);
ior = source.ior;
if (source.sheenColor != null) {
sheenColor = (sheenColor ?? Color(0, 0, 0)).copy(source.sheenColor!);
} else {
sheenColor = null;
}
sheenColorMap = source.sheenColorMap;
sheenRoughness = source.sheenRoughness;
sheenRoughnessMap = source.sheenRoughnessMap;
transmission = source.transmission;
transmissionMap = source.transmissionMap;
thickness = source.thickness;
thicknessMap = source.thicknessMap;
attenuationColor!.copy(source.attenuationColor!);
attenuationDistance = source.attenuationDistance;
specularIntensity = source.specularIntensity;
specularIntensityMap = source.specularIntensityMap;
specularColor!.copy(source.specularColor!);
specularColorMap = source.specularColorMap;
return this;
}