Adjustment to mrl material loading

This commit is contained in:
KillzXGaming 2022-10-09 13:13:52 -04:00
parent 9af7f1c0d0
commit 411f07d4fb

View file

@ -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];
}
}
}