# Step 1: Render the Scene to Texture

in main.cpp, we are setting framebuffers and textures

```cpp
void initRenderToTexture()
{
}
```

## How to output to a texture

## How to read from a texture

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FQaHF80XixQbuAREQjDtM%2Fimage.png?alt=media&#x26;token=6a9cad6d-71e6-455b-b3fe-d0272264a025" alt="" width="563"><figcaption></figcaption></figure>
