← field notes

field note #02

A sky that pauses when you look away

1 min readwebgl, motion

The pixel sky in the hero started as a PNG. It is now a small WebGL2 shader that drifts with the pointer, and the PNG stays underneath as the fallback.

The static pixel sky used as the fallback.
The fallback frame. The canvas fades in over it once it runs.

Paying only while it is seen

An IntersectionObserver stops the render loop when the section leaves the screen. Reduced motion, Save-Data and low-memory devices keep the static image, so the shader never costs anything it does not show.

The contact section reuses the same shader with the fade flipped to the top, so the sky rises out of the footer instead of falling into the page.