Struct RainRenderSettings
Defines settings for rendering rain effects over terrain, including the rain's starting height, maximum visual thickness, and the cell height at which maximum thickness is achieved.
Inherited Members
Namespace: Fwt.HexTerrains.ChunkMehes.Data
Assembly: fwt.hexterrains.dll
Syntax
[Serializable]
public struct RainRenderSettings
Remarks
Use this struct to configure how rain appears in relation to terrain height and density. Adjusting these settings allows for control over the visual coverage and intensity of rain effects, which can be tailored to different terrain types or weather scenarios. The provided Default property offers typical values for standard rain rendering.
Fields
MaxCellHeight
When CellHeight the rain is at it's max thickness. See MaxRainThickness. When CellHeight is 0, the rain is invisible. The rain thickness will be interpolated between these two values based on the cell height of the terrain."/>
Declaration
[Tooltip("When CellHeight the rain is at it's max thickness. See MaxRainThickness. When CellHeight is 0, the rain is invisible. The rain thickness will be interpolated between these two values based on the cell height of the terrain.")]
public float MaxCellHeight
Field Value
| Type | Description |
|---|---|
| float |
RainHeight
Rain is rendered from this height above the terrain and extends down to the 0 height of the terrain. This means that if RainHeight is 10, the rain will be rendered starting from 10 units above the terrain and will extend down to the terrain surface. Adjusting this value allows you to control how high above the terrain the rain effect begins, which can affect the visual density and coverage of the rain on the terrain below.
Declaration
[Tooltip("Rain is rendered from this height above the terrain and extends down to the 0 height of the terrain. This means that if RainHeight is 10, the rain will be rendered starting from 10 units above the terrain and will extend down to the terrain surface. Adjusting this value allows you to control how high above the terrain the rain effect begins, which can affect the visual density and coverage of the rain on the terrain below.")]
public float RainHeight
Field Value
| Type | Description |
|---|---|
| float |
Properties
Default
Declaration
public static RainRenderSettings Default { get; }
Property Value
| Type | Description |
|---|---|
| RainRenderSettings |