Class TerrainDetailBake.Grass
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
ChannelPrefabs
public GameObject[] ChannelPrefabs
Field Value
- GameObject[]
Density
public byte[] Density
Field Value
- byte[]
DensityMaps
public int DensityMaps
Field Value
DensityResolution
The density maps: DensityMaps RGBA8 squares of DensityResolution, one after the other.
public int DensityResolution
Field Value
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
public int GridX
Field Value
GridZ
public int GridZ
Field Value
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
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
Sward
public byte[] Sward
Field Value
- byte[]