clone method

  1. @override
ShaderMaterial clone()
override

Return a new material with the same parameters as this material.

Implementation

@override
ShaderMaterial clone() {
  return ShaderMaterial().copy(this);
}