Struct ChunkMeshRenderSettings
Render settings for the hex terrain surface.
Contains settings that affect mesh generation and rendering.
Assembly: fwt.hexterrains.dll
Syntax
[BurstCompile]
[Serializable]
public struct ChunkMeshRenderSettings : IEquatable<ChunkMeshRenderSettings>
Fields
BorderSize
Value from 0 to 1 (part of the Hex are that slopes take)
Declaration
[Tooltip("Value from 0 to 1 (part of the Hex are that plato borders take)")]
public float BorderSize
Field Value
BorderSubmeshIndex
Index of the submesh where borders will be placed (if IsColoredBorders is true).
Declaration
[Tooltip("Borders will be placed at subhesh with this index (if IsColoredBorders is true)")]
public byte BorderSubmeshIndex
Field Value
ColoredSlopeTreshold
If height difference between cells is bigger that this value, bridge will be painted as border.
Declaration
[Tooltip("If height difference between cells is bigger that this value, bridge will be painted as border")]
public byte ColoredSlopeTreshold
Field Value
HeightOffset
Additional height offset for the terrain surface relative to the terrain origin.
Used, for instance, for water surfaces, so if water level == ground level, there is no visual clipping.
If set, this value is usually very small (e.g. 0.01f) - just enough to avoid visual clipping.
Declaration
[Tooltip("Additional height offset for the terrain surface relative to the terrain origin")]
public float HeightOffset
Field Value
IsColoredBorders
If true, the borders between cells of different ground types will be painted on BorderSubmeshIndex submesh instead of the submesh with index that equals cell's GroundType.
Declaration
[Tooltip("If true, Borders between cells of different ground types will be painted on BorderSubmeshIndex submesh instead of submesh with index that equals cell's GroundType")]
public bool IsColoredBorders
Field Value
IsOverrideSlopeSize
Declaration
[Tooltip("If true, plato size will be overridden by OverrideSlopeSize value")]
public bool IsOverrideSlopeSize
Field Value
IsUseBiomeAtlas
If true, the hex surface will use a single material for all biomes.
UV for the biome will be taken from BiomeUVs list.
Declaration
public bool IsUseBiomeAtlas
Field Value
OverrideSlopeSize
Declaration
[Tooltip("Override size of the plato in the hex cell. Works if IsOverridePlatoSize is true")]
public float OverrideSlopeSize
Field Value
UVScale
Declaration
Field Value
Properties
Default
Declaration
public static ChunkMeshRenderSettings Default { get; }
Property Value
Methods
Equals(ChunkMeshRenderSettings)
Declaration
public bool Equals(ChunkMeshRenderSettings other)
Parameters
Returns
Implements
Extension Methods