This version
The 8×8 font lives in a texture; the fragment shader finds the glyph under each pixel, adds a rainbow, a glow, a starfield and a rippling reflection.
How this version works
A single full-resolution fragment shader samples the repeating message from an eight-pixel-high font texture, scaling the letters to one sixth of the viewport height. It calculates a sine displacement for each screen column and shades the glyph from white towards a cosine-generated rainbow. Twenty-five nearby font samples add a soft glow, while a hashed grid produces horizontally travelling stars. Below a horizon 30% up from the bottom, remapped text coordinates create a compressed, rippling reflection with blue attenuation and a bright pink boundary line.
The trick in this version
The reflection is generated by evaluating the text again at transformed coordinates, without a reflection framebuffer or a separate blur pass. Stars retain their original screen coordinates below the horizon, so they are tinted there but not geometrically reflected.
Historical context · GPU
today · ByteJuggler · Space Travel
A scroller in one shader
Font, rainbow sine scroller, reflection and bars drawn by a single full-screen fragment shader, the old character machinery replaced by per-pixel maths.
- Platform
- GPU · GLSL
- Era
- GPU
- Rendered on
- GPU
- Tags
- font texture · reflection