mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Adjustment to mrl material loading
This commit is contained in:
parent
9af7f1c0d0
commit
411f07d4fb
1 changed files with 4 additions and 4 deletions
|
@ -86,8 +86,8 @@ namespace CafeLibrary.M2
|
|||
material.DiffuseMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
if (parameters[j].ToString().StartsWith("577110")) //tNormalMap
|
||||
material.NormalMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
if (parameters[j].ToString().StartsWith("24862")) //tSpecularMap
|
||||
material.SpecularMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
// if (parameters[j].ToString().StartsWith("24862")) //tSpecularMap
|
||||
// material.SpecularMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -99,8 +99,8 @@ namespace CafeLibrary.M2
|
|||
material.DiffuseMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
if (parameters[j].ToString().StartsWith("5771109")) //tNormalMap
|
||||
material.NormalMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
if (parameters[j].ToString().StartsWith("2486240")) //tSpecularMap
|
||||
material.SpecularMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
// if (parameters[j].ToString().StartsWith("2486240")) //tSpecularMap
|
||||
// material.SpecularMap = this.Textures[(int)parameters[j - 1] - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue