copy method
Implementation
Texture copy(Texture source) {
name = source.name;
this.source = source.source;
mapping = source.mapping;
wrapS = source.wrapS;
wrapT = source.wrapT;
magFilter = source.magFilter;
minFilter = source.minFilter;
anisotropy = source.anisotropy;
format = source.format;
internalFormat = source.internalFormat;
type = source.type;
offset.copy(source.offset);
repeat.copy(source.repeat);
center.copy(source.center);
rotation = source.rotation;
matrixAutoUpdate = source.matrixAutoUpdate;
matrix.copy(source.matrix);
generateMipmaps = source.generateMipmaps;
premultiplyAlpha = source.premultiplyAlpha;
flipY = source.flipY;
unpackAlignment = source.unpackAlignment;
encoding = source.encoding;
userData = json.decode(json.encode(source.userData));
return this;
}