csharp
public readonly record struct WaterFieldSampleWhat a field says about one place.
Remarks
⚠ Depth is Depth and is computed, never stored — [§ D3](../../docs/plan/35-water.md#d3-the-water-info-texture-is-the-interchange-and-it-is-a-zone-render). Storing it would be a third number that can disagree with the two it came from, and the frame it disagrees on is the one where the shoreline is in a different place for the material than for the wave attenuation.
Fields and properties (6)
public float CoverageHow much water is here at all, 0…1.
public float SurfaceHeightWhere the surface is, in world units.
public Vector2 FlowHow fast it moves, in metres per second, on the ground plane.
public float GroundHeightWhere the ground under it is, in world units.
public float DepthHow deep the water is, in metres. Never negative.
public static WaterFieldSample NoneNothing at all.
Methods (1)
public WaterFieldSample(float Coverage, float SurfaceHeight, Vector2 Flow, float GroundHeight)What a field says about one place.
Used by (10)
- WaterDebugDrawVixen.Rendering.Water
- WaterEvaluatorVixen.Water
- WaterFieldVixen.Water
- WaterFieldPyramidVixen.Water
- WaterFieldTestsVixen.Water.Tests
- WaterInfoTextureVixen.Rendering.Water
- WaterSurfaceMeshVixen.Water
- WaterZoneSystemTestsVixen.Rendering.Water.Tests
- WaterZoneTestsVixen.Water.Tests
- WaterPresenterVixen.Editor.App