# Step 2: Highlight Filtering

We are going to write a fragment shader bloomfilter.frag to extract the brightest part of the rendering and save it to a second texture object.

To achieve this, we are assuming rendering a full screen square on the screen, using the scene rendering texture as its texture.

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2Fvn88MuoDrOZ0VFqA9ypR%2Fimage.png?alt=media&#x26;token=b9f7b3f9-b5dc-4f99-8a65-a1046f2921e5" alt="" width="563"><figcaption></figcaption></figure>
