Hello,
I created a scanline shader as i wasn’t really satisfied with the default one and wanted something lighter to use than a full featured crt filters. I’m quite pleased with the results so i decided to share it. The shader shouldn’t be very expensive in term of gpu requirements and is intended to be used with linear texture filtering. Technically it is based on sine function to generate the scanlines, taking color luminance into account to have some variations. I also added some parameters to tweak the scanlines to your taste.
I’m using a 4K screen at non-integer scale ; haven’t tested it on a 1080p display but i think it should work fine, just with less nuances.
You can see some capture with default parameters here : https://imgur.com/a/aRkvmCK And the shader code is available here : https://pastebin.com/USyjt6XA
Also i’m pretty new to shader programming (currently learning by myself) so any feedback and criticism is welcome.
Thanks for reading