Fix BRLYT tex coord gens for newly made texture maps

This commit is contained in:
KillzXGaming 2020-03-22 17:51:01 -04:00
parent efca9faee9
commit 2fa03c724a
2 changed files with 14 additions and 1 deletions

View file

@ -144,6 +144,7 @@ namespace LayoutBXLYT.Revolution
TextureMaps = TextureMaps.AddToArray(textureRef);
TexCoordGens.Add(new TexCoordGenEntry()
{
Type = TexCoordGenTypes.GX_TG_MTX2x4,
MatrixSource = TexCoordGenMatrixSource.GX_DTTMTX9 + (TexCoordGens.Count * 4),
Source = TexCoordGenSource.GX_TG_TEX0
});
@ -183,6 +184,18 @@ namespace LayoutBXLYT.Revolution
uint mtxCount = ExtractBits(flags, 4, 24);
uint texCount = ExtractBits(flags, 4, 28);
Console.WriteLine($"HasMaterialColor {HasMaterialColor}");
Console.WriteLine($"HasChannelControl {HasChannelControl}");
Console.WriteLine($"HasBlendMode {HasBlendMode}");
Console.WriteLine($"HasAlphaCompare {HasAlphaCompare}");
Console.WriteLine($"tevStagesCount {tevStagesCount}");
Console.WriteLine($"indTexOrderCount {indTexOrderCount}");
Console.WriteLine($"indSrtCount {indSrtCount}");
Console.WriteLine($"HasTevSwapTable {HasTevSwapTable}");
Console.WriteLine($"texCoordGenCount {texCoordGenCount}");
Console.WriteLine($"mtxCount {mtxCount}");
Console.WriteLine($"texCount {texCount}");
TextureMaps = new TextureRef[texCount];
TevStages = new TevStage[tevStagesCount];
TextureTransforms = new BxlytTextureTransform[mtxCount];

View file

@ -11,7 +11,7 @@ namespace LayoutBXLYT.Revolution
public TexCoordGenEntry()
{
Type = TexCoordGenTypes.GX_TG_MTX3x4;
Type = TexCoordGenTypes.GX_TG_MTX2x4;
Source = TexCoordGenSource.GX_TG_TEX0;
MatrixSource = TexCoordGenMatrixSource.GX_TEXMTX0;
Unknown = 0;