Examples /

Ocean caustics

Refracted light gathers into an intricate lattice under a moving water surface.

Initializing WebGPUwgpu-kit 2.2.0

Move to change the light direction. Sharpness controls the concentrated ridges.

How it works

Several directional waves form a surface slope field. Its local derivative compresses light into bright caustic ridges. The result is a real-time approximation of underwater light concentration, not a full optical ray trace.

Read the related guide →

Search concepts, APIs, and examples