Struct RenderWaterChunkJob
This job renders the water surface of a chunk.
Namespace: TycoonTerrain.Core.Rendering
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct RenderWaterChunkJob : IJob
Constructors
RenderWaterChunkJob(IntBound, TerrainGrid, NativeMeshData, Single)
Render the water surface of a given chunk.
Declaration
public RenderWaterChunkJob(IntBound bounds, TerrainGrid grid, NativeMeshData nativeMeshData, float waterStepHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| Int |
bounds | The terrain area to generate water surface for. |
| Terrain |
grid | The terrain grid. |
| Native |
nativeMeshData | The native mesh data. |
| Single | waterStepHeight | The height in world space per water step. |
Properties
NativeMeshData
Gets the native mesh data.
Declaration
public NativeMeshData NativeMeshData { get; }
Property Value
| Type | Description |
|---|---|
| Native |
The native mesh data. |
Methods
Execute()
Declaration
public void Execute()