mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-11 14:06:02 +10:00
Cause everywhere there are warnings about not writing to the same texture which is also being read. Curiously enough this didn't make problems so far (save for mysterious lines when doing "heat" effect in ro.me).
24 lines
377 B
JavaScript
24 lines
377 B
JavaScript
/**
|
|
* @author alteredq / http://alteredqualia.com/
|
|
*/
|
|
|
|
THREE.RenderPass = function ( scene, camera ) {
|
|
|
|
this.scene = scene;
|
|
this.camera = camera;
|
|
|
|
this.clear = true;
|
|
this.needsSwap = false;
|
|
|
|
};
|
|
|
|
THREE.RenderPass.prototype = {
|
|
|
|
render: function ( renderer, writeBuffer, readBuffer, delta ) {
|
|
|
|
renderer.render( this.scene, this.camera, readBuffer, this.clear );
|
|
|
|
}
|
|
|
|
};
|