diff --git a/include/light/ltface2.hh b/include/light/ltface2.hh index 2efd6c7d..41d07334 100644 --- a/include/light/ltface2.hh +++ b/include/light/ltface2.hh @@ -29,6 +29,7 @@ #include +glm::vec2 WorldToTexCoord_HighPrecision(const bsp2_t *bsp, const bsp2_dface_t *face, const glm::vec3 &world); void LightBatch(bsp2_t *bsp, const batch_t &batch, const all_contrib_faces_t &all_contrib_faces); #endif /* __LIGHT_LTFACE2_H__ */ diff --git a/light/ltface2.cc b/light/ltface2.cc index 3f2166a8..4fc070dd 100644 --- a/light/ltface2.cc +++ b/light/ltface2.cc @@ -38,9 +38,7 @@ using namespace std; using namespace glm; -static glm::vec2 -WorldToTexCoord_HighPrecision(const bsp2_t *bsp, const bsp2_dface_t *face, - const glm::vec3 &world) +glm::vec2 WorldToTexCoord_HighPrecision(const bsp2_t *bsp, const bsp2_dface_t *face, const glm::vec3 &world) { const texinfo_t *tex = Face_Texinfo(bsp, face); if (tex == nullptr)