Class CaveCoverBake.Piece
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
ColourFormat
public uint ColourFormat
Field Value
ColourOffset
public int ColourOffset
Field Value
IndexCount
public int IndexCount
Field Value
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
NormalOffset
public int NormalOffset
Field Value
PositionFormat
public uint PositionFormat
Field Value
PositionOffset
public int PositionOffset
Field Value
Stride
public int Stride
Field Value
Uv3Format
public uint Uv3Format
Field Value
Uv3Offset
public int Uv3Offset
Field Value
VertexCount
public int VertexCount
Field Value
Vertices
VertexCount × Stride bytes, each attribute 4-byte aligned.
public byte[] Vertices
Field Value
- byte[]
Wide
public bool Wide
Field Value
Methods
Matches(Mesh)
Whether it still describes mesh (a re-cut writes the pieces over in place).
public bool Matches(Mesh mesh)
Parameters
meshMesh