copy method

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

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

Implementation

@override
PointLight copy(Object3D source, [bool? recursive]) {
  super.copy.call(source);
  PointLight source1 = source as PointLight;

  distance = source1.distance;
  decay = source1.decay;
  shadow = source1.shadow!.clone();

  return this;
}