10-28-2019, 06:17 PM
Of course, you can adapt it to your own needs. The source files that cointain everything related to the CRT effect are Window.c and GaussianBlur.c.
It renders the framebuffer to a SDL_Texture and the uses it to produce the desired effect.
Keep in mind that my implementation is somewhat cheap and doesn't take advantage of modern GPU capabilities. There are much better CRT shaders out there -albeit more GPU demanding too- such as CRT Lottes.
It renders the framebuffer to a SDL_Texture and the uses it to produce the desired effect.
Keep in mind that my implementation is somewhat cheap and doesn't take advantage of modern GPU capabilities. There are much better CRT shaders out there -albeit more GPU demanding too- such as CRT Lottes.