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:
parent
36ee3b7ebe
commit
e1fa7345ff
@ -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; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user