Table of Contents

Class TerrainDetailBake.Grass

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The blade grass's maps of one terrain (GrassTerrain).

[Serializable]
public sealed class TerrainDetailBake.Grass
Inheritance
TerrainDetailBake.Grass
Inherited Members

Fields

Baked

False when nothing was baked for it (no blade prototype, or it was not built).

public bool Baked

Field Value

bool

ChannelPrefabs

public GameObject[] ChannelPrefabs

Field Value

GameObject[]

Density

public byte[] Density

Field Value

byte[]

DensityMaps

public int DensityMaps

Field Value

int

DensityResolution

The density maps: DensityMaps RGBA8 squares of DensityResolution, one after the other.

public int DensityResolution

Field Value

int

Freeboard

The water line and holes (RG8 on the heights' grid); empty when no water reaches it and it has no hole.

public byte[] Freeboard

Field Value

byte[]

GridX

The min/max ground height grid (world metres), GridX × GridZ cells.

public int GridX

Field Value

int

GridZ

The min/max ground height grid (world metres), GridX × GridZ cells.

public int GridZ

Field Value

int

LayerChannels

public int[] LayerChannels

Field Value

int[]

LayerPrototypes

The prototypes read, the channel each adds into, and each channel's prefab: what the runtime's selection must match.

public int[] LayerPrototypes

Field Value

int[]

MaxHeights

public float[] MaxHeights

Field Value

float[]

MinHeights

public float[] MinHeights

Field Value

float[]

Occupied

Per density texel: 1 where any blade grows; the ground's share under blades (0..255).

public byte[] Occupied

Field Value

byte[]

Present

False when its blade prototypes paint nothing anywhere: the terrain has no blades.

public bool Present

Field Value

bool

Surface

public byte[] Surface

Field Value

byte[]

SurfaceResolution

The packed surface layers (RGBA8, SurfaceResolution square); empty when the terrain has no layers.

public int SurfaceResolution

Field Value

int

Sward

public byte[] Sward

Field Value

byte[]