Microsoft DirectX 8.0 (Visual Basic)

Wave Modeling

A shape such as a quadratic hyperboloid can be generated in the unit square and mapped repeatedly onto incoming geometry. To do this, take input vertex (x, y) values, map them into unit square using the frc macro, compute local hyperboloid elevation, and add to input vertex z value. This can be used to simulate waves on an ocean, and so on.