mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-15 09:27:08 +00:00
Cleanup
This commit is contained in:
parent
94602f3671
commit
79ca72bc98
2 changed files with 8 additions and 14 deletions
Binary file not shown.
|
@ -860,25 +860,19 @@ namespace FirstPlugin
|
|||
IsTranslucent = mat.renderinfo[i].ValueString.Contains("translucent");
|
||||
IsTransparentMask = mat.renderinfo[i].ValueString.Contains("mask");
|
||||
}
|
||||
}
|
||||
|
||||
if (mat.shaderassign.ShaderArchive == "Turbo_UBER")
|
||||
{
|
||||
AglShaderTurbo aglShader = new AglShaderTurbo();
|
||||
|
||||
for (int i = 0; i < mat.renderinfo.Count; i++)
|
||||
if (mat.shaderassign.ShaderArchive == "Turbo_UBER")
|
||||
{
|
||||
AglShaderTurbo aglShader = new AglShaderTurbo();
|
||||
aglShader.LoadRenderInfo(mat.renderinfo[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mat.shaderassign.options.ContainsKey("enable_translucent"))
|
||||
IsTranslucent = mat.shaderassign.options["enable_translucent"] == "1";
|
||||
if (mat.shaderassign.options.ContainsKey("enable_translucent"))
|
||||
IsTransparentMask = mat.shaderassign.options["enable_transparent"] == "1";
|
||||
}
|
||||
|
||||
|
||||
if (mat.shaderassign.options.ContainsKey("enable_translucent"))
|
||||
IsTranslucent = mat.shaderassign.options["enable_translucent"] == "1";
|
||||
if (mat.shaderassign.options.ContainsKey("enable_translucent"))
|
||||
IsTransparentMask = mat.shaderassign.options["enable_transparent"] == "1";
|
||||
|
||||
if (mat.MaterialU != null)
|
||||
{
|
||||
IsTranslucent = mat.MaterialU.RenderState.FlagsMode == ResU.RenderStateFlagsMode.Translucent;
|
||||
|
|
Loading…
Reference in a new issue