old_contents: /**
   * @author alteredq / http://alteredqualia.com/
   */
  
  THREE.RenderPass = function ( scene, camera, overrideMaterial, clearColor, clearAlpha ) {
  
  	THREE.Pass.call( this );
  
  	this.scene = scene;
  	this.camera = camera;
  
  	this.overrideMaterial = overrideMaterial;
  
  	this.clearColor = clearColor;
  	this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 1;
  
  	this.clear = true;
  	this.needsSwap = false;
  
  };
  
  THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ), {
  
  	constructor: THREE.RenderPass,
  
  	render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {
  
  		this.scene.overrideMaterial = this.overrideMaterial;
  
  		var oldClearColorHex = 0, oldClearAlpha = 1;
  
  		if ( this.clearColor ) {
  
  			oldClearColorHex = renderer.getClearColor();
  			oldClearAlpha = renderer.getClearAlpha();
  
  			renderer.setClearColor( this.clearColor, this.clearAlpha );
  
  		}
  
  		renderer.render( this.scene, this.camera, readBuffer, this.clear );
  
  		if ( this.clearColor ) {
  
  			renderer.setClearColor( oldClearColorHex, oldClearAlpha );
  
  		}
  
  		this.scene.overrideMaterial = null;
  
  	}
  
  } );
  
new_contents: /**
   * @author alteredq / http://alteredqualia.com/
   */
  
  THREE.RenderPass = function ( scene, camera, overrideMaterial, clearColor, clearAlpha ) {
  
  	THREE.Pass.call( this );
  
  	this.scene = scene;
  	this.camera = camera;
  
  	this.overrideMaterial = overrideMaterial;
  
  	this.clearColor = clearColor;
  	this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 1;
  
  	this.clear = true;
  	this.needsSwap = false;
  
  };
  
  THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ), {
  
  	constructor: THREE.RenderPass,
  
  	render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {
  
  		this.scene.overrideMaterial = this.overrideMaterial;
  
  		if ( this.clearColor ) {
  
  			var oldClearColorHex = renderer.getClearColor();
  			var oldClearAlpha = renderer.getClearAlpha();
  
  			renderer.setClearColor( this.clearColor, this.clearAlpha );
  
  		}
  
  		renderer.render( this.scene, this.camera, readBuffer, this.clear );
  
  		if ( this.clearColor ) {
  
  			renderer.setClearColor( oldClearColorHex, oldClearAlpha );
  
  		}
  
  		this.scene.overrideMaterial = null;
  
  	}
  
  } );
  
subject: simplify code via automatic hoisting.