diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-16 18:25:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-16 18:25:03 +0000 |
commit | 302f11ce816ffe4b51f48c42972bb58475bcca5d (patch) | |
tree | f7d4969f7b3abe27e069589bcebc99a14d70e523 /src/model/material.cc | |
parent | 359f98adee3e0308dcd92dc59b68f699527d1acb (diff) |
Material API cleanups,
added support for bounds materials.
Diffstat (limited to 'src/model/material.cc')
-rw-r--r-- | src/model/material.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/material.cc b/src/model/material.cc index f8ffbc0..25c1f27 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -81,6 +81,9 @@ void Material::print() if (flags() & FlagDecal) { con_print << "decal "; } + if (flags() & FlagBounds) { + con_print << "bounds "; + } } con_print << std::endl; @@ -279,7 +282,8 @@ void Material::load_shader(const std::string &shadername) material->set_flags(FlagOrigin); } else if (firstword.compare("decal") == 0) { material->set_flags(FlagDecal); - + } else if (firstword.compare("bounds") == 0) { + material->set_flags(FlagBounds); } else if (firstword.compare("qer_editorimage") == 0) { // keyword qer_editorimage is ignored continue; |