diff options
Diffstat (limited to 'src/model/material.cc')
-rw-r--r-- | src/model/material.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/model/material.cc b/src/model/material.cc index 6baf4f9..2cacf42 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -188,15 +188,20 @@ void Material::load_shader(const std::string &shadername) material->set_flags(Tertiary); } else if (firstword.compare("ignore") == 0) { material->set_flags(Ignore); + } else if (firstword.compare("clip") == 0) { + material->set_flags(Clip); } else if (firstword.compare("qer_editorimage") == 0) { + // keyword qer_editorimage is ignored continue; } else if (firstword.compare("qer_trans") == 0) { + // keyword qer_trans is ignored + continue; + } else if (firstword.compare("surfaceparm") == 0) { + // keyword surfaceparm is ignored continue; } else if (firstword.compare("texture") == 0) { - // texture name should not contain spaces if (linestream >> firstword) { - // remove extension if (firstword[firstword.size()-4] == '.') { firstword.erase(firstword.size() - 4); |