Try to fix build errors

This commit is contained in:
KillzXGaming 2019-07-22 19:03:41 -04:00
parent 8be02596e6
commit 73056fa735
2 changed files with 0 additions and 13 deletions

Binary file not shown.

View file

@ -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);