RenderPass.js 343 B

12345678910111213141516171819202122
  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. };
  9. THREE.RenderPass.prototype = {
  10. render: function ( renderer, renderTarget, delta ) {
  11. renderer.render( this.scene, this.camera, renderTarget, this.clear );
  12. }
  13. };