mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 21:15:56 +10:00
23 lines
343 B
JavaScript
23 lines
343 B
JavaScript
/**
|
|
* @author alteredq / http://alteredqualia.com/
|
|
*/
|
|
|
|
THREE.RenderPass = function ( scene, camera ) {
|
|
|
|
this.scene = scene;
|
|
this.camera = camera;
|
|
|
|
this.clear = true;
|
|
|
|
};
|
|
|
|
THREE.RenderPass.prototype = {
|
|
|
|
render: function ( renderer, renderTarget, delta ) {
|
|
|
|
renderer.render( this.scene, this.camera, renderTarget, this.clear );
|
|
|
|
}
|
|
|
|
};
|