Table of Contents

Class CaveCoverBake.Piece

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

One piece as the compute reads it. Offsets are -1 for an attribute the piece has not; formats are FishCaveCover.compute's (VertexAttributeFormat | dimension << 8).

[Serializable]
public sealed class CaveCoverBake.Piece
Inheritance
CaveCoverBake.Piece
Inherited Members

Fields

BaseVertex

public int BaseVertex

Field Value

int

ColourFormat

public uint ColourFormat

Field Value

uint

ColourOffset

public int ColourOffset

Field Value

int

IndexCount

public int IndexCount

Field Value

int

Indices

The first submesh's indices in the mesh's index format, padded to a multiple of 4 bytes.

public byte[] Indices

Field Value

byte[]

Mesh

public Mesh Mesh

Field Value

Mesh

NormalFormat

public uint NormalFormat

Field Value

uint

NormalOffset

public int NormalOffset

Field Value

int

PositionFormat

public uint PositionFormat

Field Value

uint

PositionOffset

public int PositionOffset

Field Value

int

Stride

public int Stride

Field Value

int

Uv3Format

public uint Uv3Format

Field Value

uint

Uv3Offset

public int Uv3Offset

Field Value

int

VertexCount

public int VertexCount

Field Value

int

Vertices

VertexCount × Stride bytes, each attribute 4-byte aligned.

public byte[] Vertices

Field Value

byte[]

Wide

public bool Wide

Field Value

bool

Methods

Matches(Mesh)

Whether it still describes mesh (a re-cut writes the pieces over in place).

public bool Matches(Mesh mesh)

Parameters

mesh Mesh

Returns

bool