steadySurface.shaderModule
Surface coordinates for marks that stay on things, with the engine's antialiasing jitter taken back out. `ts_surface_plane(uv)` returns the same coordinates as styleKit's `sk_surface_plane` (world metres along the surface's main axis, or view-direction radians on the sky), but st…
steadySurface (shader module)
Surface coordinates for marks that stay on things, with the engine's antialiasing jitter taken back out. ts_surface_plane(uv) returns the same coordinates as styleKit's sk_surface_plane (world metres along the surface's main axis, or view-direction radians on the sky), but steady from frame to frame: crisp dots laid on it no longer flicker at their edges on a still camera.
Include it after styleKit's shared prelude in a full-screen (post-process) shader:
#include "~styleKit.shaders.skCommon"
#include "~toneScreens.shaders.steadySurface"
Call it from control flow every pixel takes alike (it takes screen derivatives). toneScreens' screens on surfaces and four-colour process on surfaces use it. Unlike ~toneScreens.shaders.halftone, which is pure maths, this module needs styleKit's prelude.
Measured on a still camera in the showcase street: a black round-dot screen on surfaces went from 20.6 to 1.2 per-pixel standard deviation over ten frames (the untouched frame reads 0.5); on the sky, from 17.6 to 0.7.
Scoped to this part · feeds back into the world's score.