Interface IVisualChunkMeshLayerConfig
Defines a configuration for the rendering and visual properties for a chunk mesh layer in a hex terrain system.
Inherited Members
Namespace: Fwt.HexTerrains.ChunkMehes.Data
Assembly: fwt.hexterrains.dll
Syntax
public interface IVisualChunkMeshLayerConfig : IChunkMeshLayerConfig
Properties
BiomeUVConfigs
Gets an enumerable collection of biome UV configuration objects for the chunk mesh.
Declaration
IEnumerable<ChunkMeshBiomeUVConfig> BiomeUVConfigs { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ChunkMeshBiomeUVConfig> |
BiomeUvs
UVs for the hex surface biomes. In standard case the UV index = biome index. Used if IsUseBiomeAtlas is true.
Declaration
List<Sprite> BiomeUvs { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Sprite> |
DefaultRenderConfig
If there is no render config for the view mode found, this config will be used as a fallback.
Declaration
HexSurfaceRenderConfigAsset DefaultRenderConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| HexSurfaceRenderConfigAsset |
IsVisible
If true, the layer will be rendered.
Declaration
bool IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RenderConfigs
Render configurations for the surface layer. Used to get materials and params like IsCastShadows, IsReceive Shadows, etc. Index of the config in this list corresponds to the view mode of the terrain. When the view mode == 0, the first config will be used, when view mode == 1, the second config will be used, etc.
Declaration
List<HexSurfaceRenderConfigAsset> RenderConfigs { get; set; }
Property Value
| Type | Description |
|---|---|
| List<HexSurfaceRenderConfigAsset> |
RenderSettings
Contains settings for rendering chunk meshes.
Declaration
ChunkMeshRenderSettings RenderSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| ChunkMeshRenderSettings |
Methods
CreateTerrainLayer()
Declaration
HexTerrainLayer CreateTerrainLayer()
Returns
| Type | Description |
|---|---|
| HexTerrainLayer |