diff --git a/.vs/Toolbox/v15/.suo b/.vs/Toolbox/v15/.suo index 6ed3eaf2..0e96ac84 100644 Binary files a/.vs/Toolbox/v15/.suo and b/.vs/Toolbox/v15/.suo differ diff --git a/File_Format_Library/FileFormats/Archives/LM2/LM2_Model.cs b/File_Format_Library/FileFormats/Archives/LM2/LM2_Model.cs index 0c169073..e889a601 100644 --- a/File_Format_Library/FileFormats/Archives/LM2/LM2_Model.cs +++ b/File_Format_Library/FileFormats/Archives/LM2/LM2_Model.cs @@ -152,9 +152,6 @@ namespace FirstPlugin.LuigisMansion.DarkMoon Console.WriteLine("unk 2 " + reader.ReadUInt16()); Console.WriteLine("unk 3 " + reader.ReadUInt16()); Console.WriteLine("unk 4 " + reader.ReadUInt16()); - - var vec4 = Set_10_10_10_2_UNorm(reader.ReadUInt32()); - vert.nrm = vec4.Xyz; } @@ -226,16 +223,6 @@ namespace FirstPlugin.LuigisMansion.DarkMoon } } - private static Vector4 Set_10_10_10_2_UNorm(uint value) - { - return new Vector4( - (value & 0b00000000_00000000_00000011_11111111) / 1023f, - ((value & 0b00000000_00001111_11111100_00000000) >> 10) / 1023f, - ((value & 0b00111111_11110000_00000000_00000000) >> 20) / 1023f, - ((value & 0b11000000_00000000_00000000_00000000) >> 30) / 3f); - } - - public static Vector2 NormalizeUvCoordsToFloat(ushort U, ushort V) { return new Vector2( U / 1024f, V / 1024f);