← Back to context

Comment by sublinear

3 days ago

I'm confused by the way scanlines are implemented here. They seem to have no effect on how the pixels are drawn.

What this actually seems to be is a plain old bloom filter that happens to have horizontal lines overlaid.

Yeah it's not a CRT simulator. It's a minimal shader to give a CRT-like vibe. Minimal as in the least amount of processing, so it performs well on older devices.

A better demo would correlate the pixelization of the source with the settings in the sidebar. Doesn't even have to be part of the shader, but would convey the effect better. The animated shapes toggle really kills the illusion.

  • The animated shapes are off by default. They're there only so you can see how the settings affect red, green, and blue individually and in motion. For example with some settings the scanlines tend to disappear on red when in motion.