Lola Retro: a CRT shader that simulates the TV signal chain
Lola Retro is an MIT-licensed CRT shader for RetroArch, Amiberry and 86Box. Most of its code was written with an AI assistant.
Lola Retro is a CRT shader for RetroArch that builds the picture from the signal path of an old TV, instead of stacking scanline overlays on top. The author, who posts as zoran123456 on Reddit, says the image goes through the same chain as on a real set: console video encoder, cable, TV decoder, electron beam, phosphor mask, glass.
Composite is done at the signal level, using each console’s real pixel clock and colour subcarrier phase. The author says that is why the SNES image crawls diagonally, the Mega Drive stripes stay still and the PS1 flips every line. The shader ships 13 presets, including composite, SCART RGB, S-Video, a PVM-style studio monitor, RF, a CRT projector, PC monitors, the Amiga 1084S and a test preset. US TVs decode colour with “red push”, taken from a Sony CXA2025AS datasheet. PAL TVs follow the standard.
It runs in RetroArch with slang versions for Vulkan, glcore, D3D11/12 and Metal. GLSL versions are included for Amiberry and 86Box. The code is MIT licensed.
The post describes how it was made. Most of the code was written with an AI assistant, Claude. The author says they set the direction and checked the physics against datasheets, test patterns and photos of real CRTs. They also tested it in the emulators and checked against the 240p Test Suite and NTSC patterns.
For anyone who still has a CRT, the author asks where the shader looks wrong compared to their own set.