light: expose WorldToTexCoord_HighPrecision() in header

This commit is contained in:
Eric Wasylishen 2017-02-11 13:17:16 -07:00
parent 69ebb0c7a9
commit 1957fb1489
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,7 @@
#include <light/light2.hh>
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__ */

View File

@ -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)