Table of Contents

Class ClientGrassSettings

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

How far the terrain's grass and small details are drawn: the player's choice, in metres.

public static class ClientGrassSettings
Inheritance
ClientGrassSettings
Inherited Members

Remarks

It replaces the scene's own detail distance on the GPU-driven path. Unity's terrain caps a detail distance at 250 m and draws every instance to it at full density, so scenes were authored short (Cov Viaduct: 120 m). The GPU renderers (the blade grass and the detail scatter, on the terrains TerrainDetailInstancing takes) generate and cull on the GPU and thin with distance (full density near, a dithered fraction toward the edge), so they draw much further for little cost. There is no CPU path (2026-10-27).

A performance control. Resident instances, chunk builds and memory grow with the square of the distance; the thinning bounds what is drawn, not what is kept.

Fields

DefaultDistance

Grass distance a fresh install uses, in metres.

public const float DefaultDistance = 200

Field Value

float

Remarks

The blade grass covers the ground in full to 50 m and thins into the far field's ground colour beyond (its rings run to 600 m for a player who sets it further). 500 m was tried as the default (2026-10-07) and judged excessive.

MaximumDistance

Longest grass distance offered, in metres.

public const float MaximumDistance = 1000

Field Value

float

Remarks

The blade grass and the GPU detail scatter hold nothing per blade, so their cost past a few hundred metres is the far field's thin share. The scatter's mesh details (ferns, pebbles; not bushes, whose reach is their own) stop at TerrainDetailInstancing.MaxChunkDistance whatever this is: the instances it generates grow with its square.

MinimumDistance

Shortest grass distance offered, in metres.

public const float MinimumDistance = 50

Field Value

float

Properties

Distance

The chosen grass distance, in metres.

public static float Distance { get; }

Property Value

float

Methods

SetDistance(float)

Writes the grass distance and notifies the renderer.

public static void SetDistance(float value)

Parameters

value float

Events

OnChanged

Raised when the grass distance changes. The detail renderer re-reads it.

public static event Action OnChanged

Event Type

Action