![]() |
vkmEngine 1.0.15
A C++ game engine · vkmengine.com
|
An ocean's ripples at one moment: its spectrum on below minWavelength, down to shortestRipple, as a density over wavenumber. More...
#include <ocean_surface.h>
Static Public Member Functions | |
| static OceanRipples | at (const Ocean &ocean, double time) |
The ripples of ocean, time seconds in: none for a windless ocean. | |
Static Public Attributes | |
| static constexpr double | LOOP = 256.0 |
An ocean's ripples at one moment: its spectrum on below minWavelength, down to shortestRipple, as a density over wavenumber.
Too short to move a vertex or anything afloat, so only the renderer reads them, for the water's light and foam (rendering.md, "The ocean"). density() is stated again in shaders/ocean_ripples.glsl; the renderer's tests hold the two to each other.
|
static |
The ripples of ocean, time seconds in: none for a windless ocean.
| ocean | The authored sea. |
| time | Seconds, as NetSession::worldTime gives them. |
|
staticconstexpr |
Seconds before the ripples repeat: each rolls a whole number of times a loop, so the GPU's phases stay exact in float however long the sea has run (Tessendorf's looping).