Skip to content
digital_developer
Game DevGodotSemaphoreGDScriptWallpaper Engine

Semaphore's windscreen frost effect in Godot uses a timestamp texture and mip blur

LatroWorks has described how the frost shader in its PS1-inspired night-train horror game Semaphore works. The effect pairs a noise-based shader with a GDScript-painted texture of wipe times.

Digital Developer Desk, 1h ago, 2 min read

Image: Semaphore on Steam

Semaphore is a PS1-inspired horror train simulator set in the People's Republic of Ordovia. Players act as both driver and conductor of a night train, meeting passengers and checking their papers. Because players spend a lot of time in the cab, LatroWorks wanted it to feel immersive. The result is a frost effect that slowly covers the windscreen, and players reach up and wipe a patch clear to see the track.

The frost shader layers two scales of noise on a chunky 88×64 grid. That gives a thick, uneven crust around the edges and a thinner haze in the middle. The thicker the frost, the blurrier the view through it. The developer says the blur comes from sampling a lower mip level of the screen texture.

Wiping is handled in GDScript. When the player drags the mouse, the script paints into a separate 128×100 texture, where each texel stores when it was last wiped. The brush leaves slightly older timestamps around the rim of each stroke. The center of a stroke clears fully, and its edges stay a little cloudy.

The shader compares those timestamps with the in-game clock. Crust and crystal clusters return first, and the clearer areas fill in later. The cab heater buys the player more time before the glass needs wiping again.

LatroWorks has also made a Wallpaper Engine version that turns the cab into a screensaver. You can stop the train or speed it up, and the wheel clatter changes pace with it. Settings cover snowfall, window frost, cab lighting, wipers and camera shake, and the clock can sync with your PC's time.

Sources

Get the daily brief

The five stories that matter, every weekday morning. Free.