If I wasn't so lazy I'd configure this pixel art shader as a custom postprocessing effect for @react-three/postprocessing 😮💨
Instead I settled for updating Kody's implementation for R3F - also added some leva controls
Screen.Recording.2024-10-11.at.10.48.56.AM.mov
Original concept: https://threejs.org/examples/webgl_postprocessing_pixel.html