# Render to texture

**URL:** <https://discourse.threejs.org/t/render-to-texture/29632>\
**Category:** Questions\
**Tags:** render-target, textures, materials\
**Created:** [September 6, 2021, 12:38pm UTC](https://discourse.threejs.org/t/render-to-texture/29632 "2021-09-06T12:38:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djo](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Djo](https://discourse.threejs.org/u/Djo)\
**Post date:** [September 6, 2021, 12:38pm UTC](https://discourse.threejs.org/t/render-to-texture/29632/1 "2021-09-06T12:38:11Z")

</div>

Hi all,  
i try to get live texture from current scene render and i use :

```javascript
const renderTargetParameters = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBFormat };

let renderTarget = new THREE.WebGLRenderTarget(window.innerWidth, window.innerHeight, renderTargetParameters );

///// material to plane
let mat = new THREE.MeshBasicMaterial({
            color: 0xffffff,
            map:renderTarget.texture
        });

function render()
{
  renderer.setRenderTarget(renderTarget);
  renderer.render( scene,camera );
}

```

and i have White screen with this warning  
[.WebGL-00004E38002BBF00] GL\_INVALID\_OPERATION: Feedback loop formed between Framebuffer and active Texture.

how i can fix it  
help plz

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [September 6, 2021, 1:11pm UTC](https://discourse.threejs.org/t/render-to-texture/29632/2 "2021-09-06T13:11:28Z")

</div>

> [@Transition effect](https://discourse.threejs.org/t/transition-effect/29616/10):
>
> Well aside from anything else you don’t have any Html or CSS so there’s no way this can work. Besides that, this code is over complicated and has way too many errors for me to deal with. I recommend you to start by creating a very simple scene that contains the plane or cube you will put the rendered texture onto. Make sure the basic scene with no render target works first. Maybe start with this scene: [webgl\_geometry\_cube](https://threejs.org/examples/#webgl_geometry_cube) Then try to replace the wood texture with your renderTarget.texture
