WaterView struct
#include <Jazz2/Rendering/PlayerViewport.h>
What the water needs, in the pixels of the view, shared by the combine pass and the water in the middle of the scene.
Public variables
- float Level
- Waterline from the top edge of the view, negative when all of it is under the water.
- float Time
- Animation time of the wave, the ripple and the rays.
- Vector2f CameraPos
- Position of the camera.
- Vector4f WavePhase
- Phases of the four sines of the wave at the left edge of the view, in cycles (
uWavePhase). - Vector4f Base
- Offset of the displacement lookup, the phase of the ripple at the top edge and the time axis of the low-power rays (
uWaterBase). - float RaysBase
- Noise coordinate of the low-power rays at the top left corner (
uRaysBase).