Table of Contents

Class TerrainDetailBake.GroundColour

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The ground colour map (GroundColourMap) over all of the scene's terrains: per texel the splat-weighted mean colour of the layers as the terrain draws them, and the surface normal; with what it was made from, so the client uses it only when the same terrains stand in the same places drawn with the same texture sets.

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

Fields

Albedos

public Texture2DArray[] Albedos

Field Value

Texture2DArray[]

Baked

public bool Baked

Field Value

bool

Bounds

The map's rect (world xz), metres per texel and size.

public Rect Bounds

Field Value

Rect

Colour

RGBA8 texels, row by row: the colour (sRGB, alpha the coverage) and the normal (linear, rgb n·0.5+0.5).

public byte[] Colour

Field Value

byte[]

Height

public int Height

Field Value

int

Normals

public byte[] Normals

Field Value

byte[]

Positions

public Vector3[] Positions

Field Value

Vector3[]

SetKeys

public int[] SetKeys

Field Value

int[]

Shares

RGBA8 texels: what the ground there is made of for the planet's looks (r living, g lichen, b mineral, by the splat weights; a coverage). The colour above is the terrain's own; the client wears the world's looks over it by these at load (GroundColourMap.WearLooks), so the bake depends on no world and holds for the looks on or off. Empty in a bake made before it: the client then works the map out itself.

public byte[] Shares

Field Value

byte[]

Stale

Set in the editor when a terrain's heights or textures were edited after the bake.

public bool Stale

Field Value

bool

Terrains

The terrains it covers, where each stood, and the texture set each was drawn with (its albedo array and a key of its tints; null and 0 for none).

public TerrainData[] Terrains

Field Value

TerrainData[]

Texel

public float Texel

Field Value

float

Width

public int Width

Field Value

int