Interface IMesh
Common interface that must be implemented by any renderable meshes that will be used in a Tycoon Tile terrain renderer that implements TycoonTileRenderer.
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 |
---|---|---|
UnityEngine.Matrix4x4 | matrix | The matrix. |
TerrainTypeCollectionAsset | TerrainTypes | The terrain types collection. |
Int32 | layer | The layer to render to. |
UnityEngine.Rendering.ShadowCastingMode | shadowCastingMode | The shadow casting mode. |
Boolean | receiveShadows | Whether to receive shadows. |