Water ripples

Version 3 of 4

Analytic rain.

GPU · GLSL · 1999 idea

This version

Champandard's alternative: a sum of decaying ring waves, frame-rate independent, evaluated per pixel with refraction, Fresnel and a sun glint.

How this version works

A fragment shader at render scale 0.8 evaluates ten expanding ring waves directly from time, without storing a height field. Each ring has a 2.6-second cycle, a hashed centre and an envelope that fades with age and distance from its moving front. A summed radial slope estimate produces a surface normal that offsets a procedural tiled floor, which also drifts slowly sideways. Fresnel-style pale colouring, slope-dependent brightening and a narrow specular glint shade the surface.

The trick in this version

Every fragment reconstructs the waves from time, so motion does not depend on how many simulation frames have run. This needs no feedback textures or simulation passes, but its prescribed rings do not reflect from pool boundaries.

Historical context · GPU

  1. 2011 · Evan Wallace

    WebGL Water

    A GPU height-field simulation you draw on, with a draggable sphere, raytraced reflections and refractions, soft shadows and caustics, on floating-point textures.

Platform
GPU · GLSL
Era
GPU
Rendered on
GPU
Tags
sum of sines · Fresnel
Sources
WebGL Water (2011)