copy method

  1. @override
DirectionalLight copy(
  1. Object3D source, [
  2. bool? recursive
])
override

Implementation

@override
DirectionalLight copy(Object3D source, [bool? recursive]) {
  super.copy(source, false);

  if (source is DirectionalLight) {
    target = source.target!.clone(false);
    shadow = source.shadow!.clone();
  }
  return this;
}