Struct RenderTerrainSurfaceChunkJob
The render terrain surface chunk job is responsible for generating top surface mesh data for tiles within a given bounds.
Namespace: TycoonTerrain.Core.Rendering
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct RenderTerrainSurfaceChunkJob : IJob
Constructors
RenderTerrainSurfaceChunkJob(IntBound, TerrainGrid, TerrainTypeTable, Single, NativeMeshData)
Initializes a new instance of the Render
Declaration
public RenderTerrainSurfaceChunkJob(IntBound bounds, TerrainGrid grid, TerrainTypeTable typeTable, float tileStepHeight, NativeMeshData nativeMeshData)
Parameters
Type | Name | Description |
---|---|---|
Int |
bounds | The area of terrain to render. |
Terrain |
grid | The grid. |
Terrain |
typeTable | The type table. |
Single | tileStepHeight | Height in world space per tile height step. |
Native |
nativeMeshData | The native mesh data. |
Properties
NativeMeshData
Gets the native mesh data.
Declaration
public NativeMeshData NativeMeshData { get; }
Property Value
Type | Description |
---|---|
Native |
The native mesh data. |
Methods
Dispose()
Declaration
public void Dispose()
Execute()
Entry point of this meshing job.
Declaration
public void Execute()