copy method

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

Copy the parameters from the passed material into this material.

Implementation

@override
MeshDepthMaterial copy(Material source) {
  super.copy(source);

  depthPacking = source.depthPacking;

  map = source.map;

  alphaMap = source.alphaMap;

  displacementMap = source.displacementMap;
  displacementScale = source.displacementScale;
  displacementBias = source.displacementBias;

  wireframe = source.wireframe;
  wireframeLinewidth = source.wireframeLinewidth;

  return this;
}