codepenz
← Back to catalog

Ocean Day Cycle

A raymarched sea rendered by a single fragment shader, carried through dawn, midday, dusk, storm, night and pre-dawn as you scroll. Sun arc, wave height, fog, palette and branching lightning are all one continuous interpolation, and the HUD recolours to match whatever hour you are in.

EffectsVisualizationswebglglslraymarchingshaderscroll
Added August 9, 2026
DAWN
000%
Scene 01 / 06

DAWN

Gold floods the horizon. The ocean catches fire — warm amber and peach across every swell.

Scene 02 / 06

MIDDAY

Full light. The sea turns a deep cerulean, scattering white specular across every swell.

Scene 03 / 06

DUSK

The sun descends in copper and ember. Long reflections stretch across the darkening water.

Scene 04 / 06

STORM

Waves amplify. The sky thickens. A darkness that isn't night — something coming from the west.

Scene 05 / 06

NIGHT

Stars emerge. The moon leaves a silver path on the swells. Nothing moves but the ocean.

Scene 06 / 06

PRE-DAWN

The last stars hold. A red-orange ember glows at the edge of the world, not yet a sun.