Notes

Working notes from the lab: precision, resize, and the small fixes that show up once a shader leaves the desktop. These are the openings only.

SDF text in one draw

Pack glyph distance fields into a single atlas and sample with smoothstep for crisp labels inside shader-only demos. The atlas is baked once, and after that…

Members

Resize and DPR caps

Canvases above 2× device pixel ratio rarely look sharper and cost a lot of fill rate. Capping the ratio and sizing from the container aspect…

Members

Stabilizing WebGL1 precision

Moving a sensitive FBM loop to mediump on mobile left visible bands in the warp field. Biasing the lattice before the hash, and keeping the final mix…

Members

Normals from screen derivatives

Screen-space derivatives give a usable normal on a height field when the mesh is only a displaced grid. The lighting stays put as the camera…

Members

The last blit and sRGB

A sketch that looked right on the canvas went dull after the last blit. The framebuffer was already sRGB, so a second encode…

Members

A short temporal resolve

Two history samples and a neighborhood clamp settle specular crawl in a quarter-res reflection. It is not a full temporal stack, but it holds…

Members

Sign in