UNPKG

three.proton

Version:

three.Proton is an easily customizable html5 particle engine for three.js

27 lines (15 loc) 417 B
/** * @author mrdoob / http://mrdoob.com/ */ THREE.ClearPass = function () { THREE.Pass.call( this ); this.needsSwap = false; }; THREE.ClearPass.prototype = Object.create( THREE.Pass.prototype ); THREE.ClearPass.prototype = { constructor: THREE.ClearPass, render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) { renderer.setRenderTarget( readBuffer ); renderer.clear(); } };