diff --git a/SuperBMD/source/Materials/AlphaCompare.cs b/SuperBMD/source/Materials/AlphaCompare.cs index 7a66f22..643e60f 100644 --- a/SuperBMD/source/Materials/AlphaCompare.cs +++ b/SuperBMD/source/Materials/AlphaCompare.cs @@ -49,6 +49,7 @@ public void Write(EndianBinaryWriter writer) writer.Write(Reference1); writer.Write((sbyte)-1); writer.Write((short)-1); + writer.Write((short)-1); } public static bool operator==(AlphaCompare left, AlphaCompare right) diff --git a/SuperBMD/source/Materials/Material.cs b/SuperBMD/source/Materials/Material.cs index 135beb1..785f71e 100644 --- a/SuperBMD/source/Materials/Material.cs +++ b/SuperBMD/source/Materials/Material.cs @@ -122,7 +122,7 @@ public void SetUpTev(bool hasTexture, bool hasVtxColor, int texIndex) if (hasTexture) { // Generate texture stuff - AddTexGen(TexGenType.Matrix2x4, TexGenSrc.TexCoord0, Enums.TexMatrix.Identity); + AddTexGen(TexGenType.Matrix2x4, TexGenSrc.Tex0, Enums.TexMatrix.Identity); AddTexMatrix(TexGenType.Matrix3x4, 0, OpenTK.Vector3.Zero, OpenTK.Vector2.One, 0, OpenTK.Vector2.Zero, OpenTK.Matrix4.Identity); AddTevOrder(TexCoordId.TexCoord0, TexMapId.TexMap0, J3DColorChannelId.Null); AddTexIndex(texIndex);