copy method

ProjectedMaterial copy(
  1. Material source
)
override

Copy the parameters from the passed material into this material.

Implementation

ProjectedMaterial copy(source) {
  super.copy(source);
  if(source is ProjectedMaterial){
    this.camera = source.camera;
    this.texture = source.texture;
    this.textureScale = source.textureScale;
    this.textureOffset = source.textureOffset;
    this.cover = source.cover;
  }

  return this;
}