Raster bars

Version 5 of 5

Neon rasters.

GPU · GLSL · 2021

This version

The same bars as a fragment shader: additive glow, a reflective floor, scanlines and CRT curvature, the beam simulated instead of raced.

How this version works

A full-scale fragment shader computes seven glowing bars directly from normalised screen coordinates, without a CPU row-colour table. Each bar follows a sine-driven vertical path and combines a narrow smooth core with an inverse-distance glow, using cosine-generated hues and animated brightness. Contributions add together rather than overwriting one another. Below a horizon at 28 per cent of the height from the bottom, warped vertical coordinates create a rippling reflection that fades towards the lower edge. Coordinate curvature, a pink horizon line, scanline modulation, a vignette and a final power adjustment shape the output.

The trick in this version

Glow and reflection are evaluated analytically in a single fragment pass, with no separate blur or reflection buffer. The shader imitates CRT geometry and scanlines through arithmetic rather than synchronising colour changes to a physical beam.

Historical context · GPU

  1. 2021 · reilar

    Raster bars as a shader

    The appearance rebuilt from pure shader arithmetic, no longer timed to a physical CRT beam.

Platform
GPU · GLSL
Era
GPU
Rendered on
GPU
Tags
glow · CRT
Sources
Raster bars as a shader (2021)