RenderPass.js 377 B

1234567891011121314151617181920212223
  1. /**
  2. * @author alteredq / http://alteredqualia.com/
  3. */
  4. THREE.RenderPass = function ( scene, camera ) {
  5. this.scene = scene;
  6. this.camera = camera;
  7. this.clear = true;
  8. this.needsSwap = false;
  9. };
  10. THREE.RenderPass.prototype = {
  11. render: function ( renderer, writeBuffer, readBuffer, delta ) {
  12. renderer.render( this.scene, this.camera, readBuffer, this.clear );
  13. }
  14. };