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 RenderTerrainSurfaceChunkJob struct.
Declaration
public RenderTerrainSurfaceChunkJob(IntBound bounds, TerrainGrid grid, TerrainTypeTable typeTable, float tileStepHeight, NativeMeshData nativeMeshData)
Parameters
Type | Name | Description |
---|---|---|
IntBound | bounds | The area of terrain to render. |
TerrainGrid | grid | The grid. |
TerrainTypeTable | typeTable | The type table. |
Single | tileStepHeight | Height in world space per tile height step. |
NativeMeshData | nativeMeshData | The native mesh data. |
Properties
NativeMeshData
Gets the native mesh data.
Declaration
public NativeMeshData NativeMeshData { get; }
Property Value
Type | Description |
---|---|
NativeMeshData | The native mesh data. |
Methods
Dispose()
Declaration
public void Dispose()
Execute()
Entry point of this meshing job.
Declaration
public void Execute()