vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
ocean_data.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5#include "system/ocean/ocean_surface.h"
6
7namespace Vkm::Engine {
8
13struct OceanData {
14 bool present = false;
15 OceanSurface surface;
16 OceanRipples ripples;
17 float level = 0.0f;
18 glm::vec3 foamColor = glm::vec3(1.0f);
19 float foam = 0.0f;
20 float waterline = 0.0f;
21 float detailScale = 1.0f;
23 glm::vec2 detailDrift = glm::vec2(0.0f);
24};
25
26} // namespace Vkm::Engine
The scene's sea at the moment being computed (OceanSystem): its waves, its ripples and its look - wha...
Definition ocean_data.h:13
bool present
The scene has an ocean; with none, nothing below is read.
Definition ocean_data.h:14
float level
World height the water rests at: its Transform's.
Definition ocean_data.h:17
float foam
How readily a squeezed crest whitens.
Definition ocean_data.h:19
glm::vec3 foamColor
Linear.
Definition ocean_data.h:18
glm::vec2 detailDrift
How far the maps have drifted with the wind, in repeats, wrapped to [0, 1).
Definition ocean_data.h:23
float waterline
Metres of foam where the water meets anything.
Definition ocean_data.h:20
float detailScale
Definition ocean_data.h:21
An ocean's ripples at one moment: its spectrum on below minWavelength, down to shortestRipple,...
Definition ocean_surface.h:114
An ocean's surface at one moment: the waves the spectrum gives, and what they do.
Definition ocean_surface.h:46