copy method

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

Copies the value of color and intensity from the source light into this one.

Implementation

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

  Light source1 = source as Light;

  color?.setFrom(source1.color!);
  intensity = source1.intensity;

  return this;
}