mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Fix BRLYT tex coord gens for newly made texture maps
This commit is contained in:
parent
efca9faee9
commit
2fa03c724a
2 changed files with 14 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue