Fix BRLYT tex coord gens for newly made texture maps
This commit is contained in:
parent
efca9faee9
commit
2fa03c724a
@ -144,6 +144,7 @@ namespace LayoutBXLYT.Revolution
|
|||||||
TextureMaps = TextureMaps.AddToArray(textureRef);
|
TextureMaps = TextureMaps.AddToArray(textureRef);
|
||||||
TexCoordGens.Add(new TexCoordGenEntry()
|
TexCoordGens.Add(new TexCoordGenEntry()
|
||||||
{
|
{
|
||||||
|
Type = TexCoordGenTypes.GX_TG_MTX2x4,
|
||||||
MatrixSource = TexCoordGenMatrixSource.GX_DTTMTX9 + (TexCoordGens.Count * 4),
|
MatrixSource = TexCoordGenMatrixSource.GX_DTTMTX9 + (TexCoordGens.Count * 4),
|
||||||
Source = TexCoordGenSource.GX_TG_TEX0
|
Source = TexCoordGenSource.GX_TG_TEX0
|
||||||
});
|
});
|
||||||
@ -183,6 +184,18 @@ namespace LayoutBXLYT.Revolution
|
|||||||
uint mtxCount = ExtractBits(flags, 4, 24);
|
uint mtxCount = ExtractBits(flags, 4, 24);
|
||||||
uint texCount = ExtractBits(flags, 4, 28);
|
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];
|
TextureMaps = new TextureRef[texCount];
|
||||||
TevStages = new TevStage[tevStagesCount];
|
TevStages = new TevStage[tevStagesCount];
|
||||||
TextureTransforms = new BxlytTextureTransform[mtxCount];
|
TextureTransforms = new BxlytTextureTransform[mtxCount];
|
||||||
|
@ -11,7 +11,7 @@ namespace LayoutBXLYT.Revolution
|
|||||||
|
|
||||||
public TexCoordGenEntry()
|
public TexCoordGenEntry()
|
||||||
{
|
{
|
||||||
Type = TexCoordGenTypes.GX_TG_MTX3x4;
|
Type = TexCoordGenTypes.GX_TG_MTX2x4;
|
||||||
Source = TexCoordGenSource.GX_TG_TEX0;
|
Source = TexCoordGenSource.GX_TG_TEX0;
|
||||||
MatrixSource = TexCoordGenMatrixSource.GX_TEXMTX0;
|
MatrixSource = TexCoordGenMatrixSource.GX_TEXMTX0;
|
||||||
Unknown = 0;
|
Unknown = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user