copy method

  1. @override
DepthTexture copy(
  1. Texture source
)
override

Implementation

@override
DepthTexture copy(Texture source ) {
		super.copy( source );
  if(source is DepthTexture){
		  compareFunction = source.compareFunction;
  }
		return this;
	}