{"id":895,"date":"2026-11-25T11:10:20","date_gmt":"2026-11-25T11:10:20","guid":{"rendered":"https:\/\/blockoala.com\/index.php\/2026\/11\/25\/how-semaphore-uses-godot-to-make-a-train-windscreen-frost-over-after-each-wipe\/"},"modified":"2026-11-25T11:10:20","modified_gmt":"2026-11-25T11:10:20","slug":"how-semaphore-uses-godot-to-make-a-train-windscreen-frost-over-after-each-wipe","status":"publish","type":"post","link":"https:\/\/blockoala.com\/index.php\/2026\/11\/25\/how-semaphore-uses-godot-to-make-a-train-windscreen-frost-over-after-each-wipe\/","title":{"rendered":"How Semaphore uses Godot to make a train windscreen frost over after each wipe"},"content":{"rendered":"<p>In <em>Semaphore<\/em>, a PS1-inspired horror simulator, the player serves as both driver and conductor of a night train in the People\u2019s Republic of Ordovia. In snowy weather, frost gradually obscures the view from the cab. Dragging the mouse wipes a patch of glass clear enough to see the rails and signals, but the frost grows back.<\/p>\n<p>Developer LatroWorks uses two textures for different jobs in Godot: one supplies the view through the glass, while the other records when each part of the windscreen was last wiped. To determine frost thickness, the shader combines two scales of noise on an 88 \u00d7 64 grid. The result is an uneven crust around the edges of the glass 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 blurrier.<\/p>\n<p>As the player drags the mouse, GDScript writes timestamps into a separate 128 \u00d7 100 texture. The brush assigns slightly older timestamps to the rim of each stroke, so the center clears fully while the edges remain cloudy. The shader compares those timestamps with the in-game clock to bring the frost back: crust and crystal clusters appear first, and clearer patches fill in later. Running the cab heater extends the interval between wipes.<\/p>\n<p>LatroWorks also made a Wallpaper Engine version of the cab. Users can stop the train or change its speed, with the wheel clatter adjusting to match. Controls cover snowfall, window frost, cab lighting, wipers and camera shake, and the cab clock can sync with the PC\u2019s time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Semaphore, a PS1-inspired horror simulator, the player serves as both driver and conductor of a night train [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":0,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/media\/894"}],"wp:attachment":[{"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blockoala.com\/index.php\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}