I'm working on implementing a bloom effect using the Ooga Booga game engine, but I'm having trouble. Specifically, I need to capture each frame before the gfx_update() call to apply the bloom filter to every pixel. I will attach the .hlsl shaders file that ChatGPT cooked up.
--- UPDATE ---
I got a function that can separate the screen's dark and bright areas using the float4 color in hlsl. The remaining problem is how to implement the blurring of the screen. To blur something we need the neighbouring pixels to the pixel we are working with... Hopefully, someone smarter than me knows how to do this.
(I have updated the shaders.hlsl to the one that i'm currently working with)