All examples · Post-processing · As Markdown, for AIs

Old machine

What this example shows

A 3D room drawn the way some games draw now to look like an old machine did, with nothing written for the look: the game is 320 × 200 and shown bigger without smoothing, the light is cut into flat bands (toonLighting() as each material's lighting), bloom() makes the bright parts glow, every colour, the glow's too, is moved to the nearest of five or six with paletteMatch() and a dither between them, and crt() lays lines and glass over all of it.

A pit in the floor fills with fog by height (useFog({ distance: false, height })), dark below its rim however near it is. The nightcrawler and the fox wear the toon light while they walk and run.

Click the preview first so it hears the keyboard. P for another palette, D for the dither, T for the toon light, C for the tube, H for the fog in the pit and space to switch the screen effects off.

Starting
Starting
—