mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 22:10:22 +00:00
Fix cmb full modes
This commit is contained in:
parent
61cd136c41
commit
602594aa3a
4 changed files with 10 additions and 3 deletions
Binary file not shown.
|
@ -838,7 +838,7 @@ namespace FirstPlugin
|
|||
for (int i = 0; i < meshCount; i++)
|
||||
{
|
||||
if (header.Version == CMBVersion.OOT3DS)
|
||||
reader.SeekBegin(meshPos + (i * 0x04));
|
||||
reader.SeekBegin(meshPos + (i * 4));
|
||||
else if (header.Version == CMBVersion.MM3DS)
|
||||
reader.SeekBegin(meshPos + (i * 0x0C));
|
||||
else if (header.Version >= CMBVersion.LM3DS)
|
||||
|
@ -848,6 +848,9 @@ namespace FirstPlugin
|
|||
mesh.SepdIndex = reader.ReadUInt16();
|
||||
mesh.MaterialIndex = reader.ReadByte();
|
||||
Meshes.Add(mesh);
|
||||
|
||||
Console.WriteLine($"SepdIndex {mesh.SepdIndex}");
|
||||
Console.WriteLine($"MaterialIndex { mesh.MaterialIndex}");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -934,6 +937,8 @@ namespace FirstPlugin
|
|||
else
|
||||
reader.SeekBegin(pos + 0x24);
|
||||
|
||||
Console.WriteLine("sepd count " + count);
|
||||
|
||||
Position = ReadVertexAttrib(reader);
|
||||
Normal = ReadVertexAttrib(reader);
|
||||
if (header.Version >= CMBVersion.MM3DS)
|
||||
|
|
|
@ -37,10 +37,10 @@ namespace Grezzo.CmbEnums
|
|||
|
||||
public enum CullMode : byte
|
||||
{
|
||||
FRONT_AND_BACK,
|
||||
NONE,
|
||||
BACK,
|
||||
FRONT,
|
||||
NONE,
|
||||
FRONT_AND_BACK,
|
||||
}
|
||||
|
||||
public enum SkinningMode : ushort
|
||||
|
|
|
@ -86,6 +86,8 @@ namespace FirstPlugin
|
|||
|
||||
string CodeName = reader.ReadString(0x0C);
|
||||
|
||||
Console.WriteLine("Version " + Version);
|
||||
|
||||
var Rooms = ReadRoomHeaders(reader, Version);
|
||||
foreach (var room in Rooms)
|
||||
LoadRooms(room, this);
|
||||
|
|
Loading…
Reference in a new issue