copy method

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

Copies value of all the properties from the source to this DirectionalLight.

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;
}