mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-10 18:34:08 +00:00
rogueviz:: objmodels:: ignore_mtlname option
This commit is contained in:
parent
36ee3b7ebe
commit
e1fa7345ff
@ -23,6 +23,8 @@ bool model::available() {
|
|||||||
|
|
||||||
bool root = false;
|
bool root = false;
|
||||||
|
|
||||||
|
string ignore_mtlname = "XXX";
|
||||||
|
|
||||||
void model::load_obj(model_data& md) {
|
void model::load_obj(model_data& md) {
|
||||||
md.prec_used = prec;
|
md.prec_used = prec;
|
||||||
|
|
||||||
@ -156,7 +158,8 @@ void model::load_obj(model_data& md) {
|
|||||||
else
|
else
|
||||||
co->color = 0xFFFFFFFF;
|
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") {
|
else if(s == "f") {
|
||||||
struct vertexinfo { int f, t, n; };
|
struct vertexinfo { int f, t, n; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user