Fix samplers for Tokyo Mirage Sessions
This commit is contained in:
parent
3b571a0319
commit
1747e5976d
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -594,7 +594,23 @@ namespace FirstPlugin
|
|||||||
}
|
}
|
||||||
else
|
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;
|
m.HasDiffuseMap = true;
|
||||||
AlbedoCount++;
|
AlbedoCount++;
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -117,9 +117,6 @@ namespace Switch_Toolbox.Library.Rendering
|
|||||||
mipmaps = new List<byte[]>() { GenericTexture.GetImageData(i, 0) }
|
mipmaps = new List<byte[]>() { GenericTexture.GetImageData(i, 0) }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!LoadArrayLevels)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user