Each wave train obeys the finite-depth dispersion relation w² = g k tanh(kh); phase speed c = w/k, group speed cg = (c/2)(1 + 2kh/sinh 2kh). Waves travel toward the beach. On the sloping bottom the energy flux E cg (E ∝ a²) is conserved, so the amplitude grows as a ∝ cg-1/2 (Green's law, ∝ h-1/4 in shallow water). Depth-limited breaking starts when the local height H = 2a approaches γ h, γ ≈ 0.78.
Dinoflagellates such as Noctiluca and Lingulodinium flash blue-green (about 470-490 nm) when fluid shear deforms the cell; the trigger is of the order of 0.1 Pa and a flash lasts about 0.1 s. Here the glow follows a smoothed local agitation: vertical surface velocity, the breaking zone and your splashes. Brightness and hue are artistic controls (the colour slider is illustrative).
1 scene unit = 2 m. Four linear components plus a breaking surge; no refraction, no nonlinear steepening, no real plankton population. The height shown is the offshore H = 2Σa. Model by Blender (beach, rocks, lighthouse) + Three.js.