Fixes to light-level detection code.

This commit is contained in:
Dmitry 2019-05-10 13:51:09 +03:00 committed by jeefo
commit fbd42b92d1
6 changed files with 96 additions and 57 deletions

View file

@ -409,6 +409,7 @@ private:
public:
LightMeasure (void) : m_doAnimation (false), m_worldModel (nullptr) {
initializeLightstyles ();
m_point.reset ();
}
@ -416,8 +417,11 @@ public:
void initializeLightstyles (void);
void animateLight (void);
bool recursiveLightPoint (const mnode_t *node, const Vector &start, const Vector &end);
float getLightLevel (const Vector &point);
float getSkiesColor (void);
private:
template <typename S, typename M> bool recursiveLightPoint (const M *node, const Vector &start, const Vector &end);
public:
inline void resetWorldModel (void) {