Sundial

A lit pixel island you sculpt. The terrain is a flat 2D image: a noise heightmap drawn as pixel columns back to front, plus a normal map packed into RGB. A fragment shader lights it with dot(normal, sun), posterized into bands, with moonlight on the dark side, cast shadows and a sea that reflects the sky. Drag the sun around the dial or run the day, raise mountains, dig bays, plant trees, and flip to the normal map and shadow views to see how it works.

This page is part of Arnav Gupta's interactive portfolio app directory.

Explore more from the desktop at home or contact.

Sundial | Arnav Gupta (ar9av)