copy method

  1. @override
SpriteMaterial copy(
  1. Material source
)
override

Implementation

@override
SpriteMaterial copy(Material source) {
  super.copy(source);
  color.copy(source.color);
  map = source.map;
  alphaMap = source.alphaMap;
  rotation = source.rotation;
  sizeAttenuation = source.sizeAttenuation;
  fog = source.fog;
  return this;
}