1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix samplers for Tokyo Mirage Sessions

This commit is contained in:
KillzXGaming 2019-07-07 15:27:31 -04:00
parent 3b571a0319
commit 1747e5976d
7 changed files with 17 additions and 4 deletions

Binary file not shown.

View File

@ -594,7 +594,23 @@ namespace FirstPlugin
}
else
{
if (useSampler == "_a0")
if (texture.SamplerName == "s_diffuse")
{
m.HasDiffuseMap = true;
AlbedoCount++;
texture.Type = MatTexture.TextureType.Diffuse;
}
else if (texture.SamplerName == "s_normal")
{
m.HasNormalMap = true;
texture.Type = MatTexture.TextureType.Normal;
}
else if (texture.SamplerName == "s_specmask")
{
m.HasSpecularMap = true;
texture.Type = MatTexture.TextureType.Specular;
}
else if (useSampler == "_a0")
{
m.HasDiffuseMap = true;
AlbedoCount++;

View File

@ -117,9 +117,6 @@ namespace Switch_Toolbox.Library.Rendering
mipmaps = new List<byte[]>() { GenericTexture.GetImageData(i, 0) }
});
}
if (!LoadArrayLevels)
break;
}
}