public void Write(ref byte[] Buffer, uint Offset) { Offset = Offset * 8; Struct.PutUInt(ref Buffer, Offset + 0x00, Normal); Struct.PutShort(ref Buffer, Offset + 0x04, UV[0]); Struct.PutShort(ref Buffer, Offset + 0x06, UV[1]); }
public void Write(ref byte[] Buffer, uint Offset) { Offset = Offset * 32; Struct.PutUInt(ref Buffer, Offset + 0x00, XYZCords[0]); Struct.PutUInt(ref Buffer, Offset + 0x04, XYZCords[1]); Struct.PutUInt(ref Buffer, Offset + 0x08, XYZCords[2]); Struct.PutUInt(ref Buffer, Offset + 0x0C, Normals); Struct.PutUInt(ref Buffer, Offset + 0x10, BiNormals); Struct.PutUInt(ref Buffer, Offset + 0x14, Tangents); Struct.PutUInt(ref Buffer, Offset + 0x18, UV[0]); Struct.PutUInt(ref Buffer, Offset + 0x1C, UV[1]); }
public void Write(ref byte[] Buffer, uint Offset) { Offset = Offset * 56; Struct.PutUInt(ref Buffer, Offset + 0x00, XYZCords[0]); Struct.PutUInt(ref Buffer, Offset + 0x04, XYZCords[1]); Struct.PutUInt(ref Buffer, Offset + 0x08, XYZCords[2]); Struct.PutUInt(ref Buffer, Offset + 0x0C, Normals[0]); Struct.PutUInt(ref Buffer, Offset + 0x10, Normals[1]); Struct.PutUInt(ref Buffer, Offset + 0x14, Normals[2]); Struct.PutUInt(ref Buffer, Offset + 0x18, BiNormals[0]); Struct.PutUInt(ref Buffer, Offset + 0x1C, BiNormals[1]); Struct.PutUInt(ref Buffer, Offset + 0x20, BiNormals[2]); Struct.PutUInt(ref Buffer, Offset + 0x24, Tangents[0]); Struct.PutUInt(ref Buffer, Offset + 0x28, Tangents[1]); Struct.PutUInt(ref Buffer, Offset + 0x2C, Tangents[2]); Struct.PutUInt(ref Buffer, Offset + 0x30, UV[0]); Struct.PutUInt(ref Buffer, Offset + 0x34, UV[1]); }