In Semaphore, a PS1-inspired horror simulator, players serve as both driver and conductor of a night train in the People’s Republic of Ordovia. Frost gradually obscures the view from the cab. Dragging the mouse clears a patch of glass so the driver can see the rails and signals, but it won’t stay clear. To make the frost return unevenly, developer LatroWorks tracks when each part of the glass was last wiped.
LatroWorks says the Godot shader combines two scales of noise on an 88×64 grid to give the windscreen a thick, irregular crust around the edges and a thinner haze in the middle. Where the frost is thicker, the shader samples a lower-resolution mip level of the screen texture, making the view beyond the glass blurrier.
A separate 128×100 texture records each wipe. As the player drags the mouse, GDScript writes a timestamp into each texture element the brush touches. The brush assigns slightly older timestamps to the rim of the stroke than to its center, leaving a clear strip with cloudy edges. The shader compares those timestamps with the in-game clock as frost returns: crust and crystal clusters form first, and the clearer patches fill in later. Using the cab heater gives the driver more time between wipes.
LatroWorks also made a Wallpaper Engine version of the cab. Users can stop the train or change its speed, with the wheel clatter following the pace. Settings cover snowfall, window frost, cab lighting, wipers and camera shake, and the cab clock can sync with the PC’s time.