# bufferTexture to screenQuad

**URL:** <https://discourse.threejs.org/t/buffertexture-to-screenquad/14180>\
**Category:** Questions\
**Tags:** rtt\
**Created:** [April 8, 2020, 10:58am UTC](https://discourse.threejs.org/t/buffertexture-to-screenquad/14180 "2020-04-08T10:58:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackInk](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@blackInk](https://discourse.threejs.org/u/blackInk)\
**Post date:** [April 8, 2020, 10:58am UTC](https://discourse.threejs.org/t/buffertexture-to-screenquad/14180/1 "2020-04-08T10:58:14Z")

</div>

Hi,

I use @pailhead´s ScreenQuad, and now I want to constantly write a bufferTexture to it.

```auto
this.bufferTexture = new THREE.WebGLRenderTarget( this.width, this.height, { minFilter: THREE.LinearFilter, magFilter: THREE.NearestFilter});

var screenQuad = new ScreenQuad({width:1.0, height:1.0,top:0.0, left:0.0,texture: this.bufferTexture });

screenQuad.setScreenSize( this.renderer.getSize().width , this.renderer.getSize().height );
this.scene.add(screenQuad);
...
this.renderer.render( this.scene, this.camera );
this.renderer.setRenderTarget( this.bufferTexture );

```

But it renders only once the scene to it but doesn´t update. Maybe I do not proper update the bufferTexture, or I´m missing something updating the screenQuad?

Any suggestions or help!

Thanks!

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [April 8, 2020, 11:12am UTC](https://discourse.threejs.org/t/buffertexture-to-screenquad/14180/3 "2020-04-08T11:12:51Z")

</div>

Why do you set the render target to your buffer on the last line?

---

<div class="post-metadata">

**Author:** ![blackInk](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@blackInk](https://discourse.threejs.org/u/blackInk)\
**Post date:** [April 8, 2020, 12:00pm UTC](https://discourse.threejs.org/t/buffertexture-to-screenquad/14180/4 "2020-04-08T12:00:39Z")

</div>

@Fyrestar because, if I´m doing

this.renderer.setRenderTarget( this.bufferTexture );  
this.renderer.render( this.scene, this.camera);

It seems not to work at all? But I´m pretty sure I´m doing a significant thing wrong…

---

<div class="post-metadata">

**Author:** ![blackInk](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@blackInk](https://discourse.threejs.org/u/blackInk)\
**Post date:** [April 8, 2020, 12:11pm UTC](https://discourse.threejs.org/t/buffertexture-to-screenquad/14180/5 "2020-04-08T12:11:42Z")

</div>

Nevermind, my fault:  
this.renderer.setRenderTarget( this.bufferTexture );  
this.renderer.render( this.scene, this.camera);  
this.renderer.setRenderTarget(null);  
this.renderer.render( this.scene1, this.camera);

Now it´s working…
