1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-17 11:30:09 +00:00

rogueviz:: objmodels:: ignore_mtlname option

This commit is contained in:
Zeno Rogue 2021-09-30 11:38:45 +02:00
parent 36ee3b7ebe
commit e1fa7345ff

View File

@ -23,6 +23,8 @@ bool model::available() {
bool root = false;
string ignore_mtlname = "XXX";
void model::load_obj(model_data& md) {
md.prec_used = prec;
@ -156,7 +158,8 @@ void model::load_obj(model_data& md) {
else
co->color = 0xFFFFFFFF;
}
println(hlog, "set textured to ", textured);
if(mtlname.find(ignore_mtlname) != string::npos) co->color = 0;
println(hlog, "set textured to ", textured, " color ", co->color, " mtlname = '", mtlname, "'");
}
else if(s == "f") {
struct vertexinfo { int f, t, n; };