diff --git a/include/common/bspfile_common.hh b/include/common/bspfile_common.hh index c4295b62..b86e51b0 100644 --- a/include/common/bspfile_common.hh +++ b/include/common/bspfile_common.hh @@ -270,9 +270,6 @@ struct surfflags_t // don't expand this face for larger clip hulls bool no_expand : 1; - // block any way phong can be enabled - bool no_phong : 1; - // this face doesn't receive light bool light_ignore : 1; diff --git a/light/light.cc b/light/light.cc index 0bb6a823..0c92acbf 100644 --- a/light/light.cc +++ b/light/light.cc @@ -1051,9 +1051,6 @@ static void LoadExtendedTexinfoFlags(const fs::path &sourcefilename, const mbsp_ if (val.contains("no_expand")) { flags.no_expand = val.at("no_expand").get(); } - if (val.contains("no_phong")) { - flags.no_expand = val.at("no_phong").get(); - } if (val.contains("light_ignore")) { flags.light_ignore = val.at("light_ignore").get(); } diff --git a/light/phong.cc b/light/phong.cc index ce6402dc..893a3103 100644 --- a/light/phong.cc +++ b/light/phong.cc @@ -483,9 +483,6 @@ void CalculateVertexNormals(const mbsp_t *bsp) if (!f_wants_phong) continue; - if (extended_texinfo_flags[f.texinfo].no_phong) - continue; - for (int j = 0; j < f.numedges; j++) { const int v = Face_VertexAtIndex(bsp, &f, j); // walk over all faces incident to f (we will walk over neighbours multiple times, doesn't matter) @@ -509,9 +506,6 @@ void CalculateVertexNormals(const mbsp_t *bsp) if (!f2_wants_phong) continue; - if (extended_texinfo_flags[f2->texinfo].no_phong) - continue; - auto *f2_texinfo = Face_Texinfo(bsp, f2); if (f2_texinfo != nullptr && f_texinfo != nullptr) { if (!bsp->loadversion->game->surfflags_may_phong(f_texinfo->flags, f2_texinfo->flags)) { diff --git a/qbsp/writebsp.cc b/qbsp/writebsp.cc index 11c2e664..a3bab93e 100644 --- a/qbsp/writebsp.cc +++ b/qbsp/writebsp.cc @@ -395,9 +395,6 @@ static void WriteExtendedTexinfoFlags() if (tx.flags.no_expand) { t["no_expand"] = tx.flags.no_expand; } - if (tx.flags.no_phong) { - t["no_phong"] = tx.flags.no_phong; - } if (tx.flags.light_ignore) { t["light_ignore"] = tx.flags.light_ignore; }