1
0
mirror of synced 2024-12-01 02:27:22 +01:00

Some simple sharc fixes for v12

This commit is contained in:
KillzXGaming 2020-01-27 19:17:05 -05:00
parent 6e64b38a79
commit 554c193a48
2 changed files with 6 additions and 2 deletions

View File

@ -1684,7 +1684,7 @@ namespace Bfres.Structs
int MaxWeight = 255;
for (int i = 0; i < 4; i++)
{
if (VertexSkinCount < i + 1 && vtx.boneWeights.Count < i + 1)
if (VertexSkinCount < i + 1 || vtx.boneWeights.Count < i + 1)
{
weightsA[i] = 0;
MaxWeight = 0;

View File

@ -214,6 +214,10 @@ namespace FirstPlugin
VertexShaderIndex = reader.ReadInt32();
FragmentShaderIndex = reader.ReadInt32();
GeoemetryShaderIndex = reader.ReadInt32();
VertexShaderIndex = 0;
FragmentShaderIndex = 1;
GeoemetryShaderIndex = -1;
}
Text = reader.ReadString((int)NameLength, true);
@ -233,7 +237,7 @@ namespace FirstPlugin
variationFragmenMacroData.Read(reader, header.Version);
variationGeometryMacroData.Read(reader, header.Version);
if (header.Version >= 13)
if (header.Version >= 12)
{
variationComputeMacroData.Read(reader, header.Version);
}