Interface IMesh
Common interface that must be implemented by any renderable meshes that will be used in a Tycoon Tile terrain renderer that implements Tycoon
Namespace: TycoonTerrain.Core.Rendering
Assembly: TycoonTerrainAssembly.dll
Syntax
public interface IMesh
Methods
Render(Matrix4x4, TerrainTypeCollectionAsset, Int32, ShadowCastingMode, Boolean)
Renders the mesh.
Declaration
void Render(Matrix4x4 matrix, TerrainTypeCollectionAsset TerrainTypes, int layer, ShadowCastingMode shadowCastingMode, bool receiveShadows)
Parameters
Type | Name | Description |
---|---|---|
Unity |
matrix | The matrix. |
Terrain |
TerrainTypes | The terrain types collection. |
Int32 | layer | The layer to render to. |
Unity |
shadowCastingMode | The shadow casting mode. |
Boolean | receiveShadows | Whether to receive shadows. |