Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mcnk[i].NormalOffset > 0)
- {
- size = 0x1C0;
- long curPos = reader.BaseStream.Position;
- reader.Seek(mcnkOffsets[i].Mcnk + mcnk[i].NormalOffset + 8);
- for (int h = 0; h < 145; h++)
- {
- float x = (int)reader.ReadByte() - 127;
- float z = (int)reader.ReadByte() - 127;
- float y = (int)reader.ReadByte() - 127;
- mapIndinces.Normals[h] = new Vector3(x, y, z);
- }
- reader.Seek(curPos);
- for (int k = 0; k < 145 * 3; k++)
- {
- mapIndinces.RawNormals[k] = (int)reader.ReadByte() - 127;
- }
- }
Add Comment
Please, Sign In to add comment