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.

Last updated