---
url: /api/core/renderTarget/type-aliases/RenderTarget.md
---
# RenderTarget

```ts
type RenderTarget = Disposable & {
  framebuffer: WebGLFramebuffer;
  texture: WebGLTexture;
  width: number;
  height: number;
  setSize: (width: number, height: number) => void;
};
```

A render target (FrameBuffer Object) for offscreen rendering.

Use it with any kind of render pass with `pass.setTarget(renderTarget)` or as a parameter of the render function, to render offscreen and use the resulting texture in subsequent passes or for readback.

## Type Declaration

| Name          | Type                                              | Description                              |
| ------------- | ------------------------------------------------- | ---------------------------------------- |
| `framebuffer` | `WebGLFramebuffer`                                | The underlying WebGL framebuffer.        |
| `texture`     | `WebGLTexture`                                    | The texture attached to the framebuffer. |
| `width`       | `number`                                          | Current width of the target.             |
| `height`      | `number`                                          | Current height of the target.            |
| `setSize()`   | (`width`: `number`, `height`: `number`) => `void` | Resizes the render target.               |
