code: function removeObject( object, scene ) {
  
  		if ( object instanceof THREE.Mesh  ||
  			 object instanceof THREE.ParticleSystem ||
  			 object instanceof THREE.Line ) {
  
  			removeInstances( scene.__webglObjects, object );
  
  		} else if ( object instanceof THREE.Sprite ) {
  
  			removeInstancesDirect( scene.__webglSprites, object );
  
  		} else if ( object instanceof THREE.LensFlare ) {
  
  			removeInstancesDirect( scene.__webglFlares, object );
  
  		} else if ( object instanceof THREE.ImmediateRenderObject || object.immediateRenderCallback ) {
  
  			removeInstances( scene.__webglObjectsImmediate, object );
  
  		}
  
  		delete object.__webglActive;
  
  	}
docs: Objects removal