Skip to main content

Module ripple

Module ripple 

Expand description

2D Interactive Ripple Buffer & Dynamic Wave Equation Solver.

Provides zero-heap real-time 2D water perturbation simulation:

  • Finite difference wave equation: $h^{n+1} = 2h^n - h^{n-1} + C^2 \nabla^2 h^n$
  • Laplacian dampening for viscosity and surface tension loss
  • Impulse injection for character footfalls, vehicle wakes, and raindrops
  • Bilinear height and surface normal sampling for rendering and physics coupling

Structs§

InteractiveRippleBuffer
A zero-heap 2D discrete wave heightfield solver.

Constants§

RIPPLE_GRID_DIM
RIPPLE_TOTAL_CELLS