afx point and spot light membervar cleanups

This commit is contained in:
Azaezel 2018-03-30 02:52:22 -05:00
parent e1c30fea37
commit 6daf4753ad
2 changed files with 10 additions and 10 deletions

View file

@ -66,10 +66,10 @@ public:
class PointLightProxy : public PointLight
{
F32 fade_amt;
F32 mFade_amt;
public:
PointLightProxy() { fade_amt = 1.0f; }
PointLightProxy() { mFade_amt = 1.0f; }
void force_ghost()
{
@ -79,7 +79,7 @@ public:
void setFadeAmount(F32 fade_amt)
{
this->fade_amt = fade_amt;
mFade_amt = fade_amt;
mLight->setBrightness(mBrightness*fade_amt);
}
@ -125,10 +125,10 @@ public:
void submitLights(LightManager* lm, bool staticLighting)
{
if (mAnimState.active && mAnimationData && fade_amt < 1.0f)
if (mAnimState.active && mAnimationData && mFade_amt < 1.0f)
{
F32 mBrightness_save = mBrightness;
mBrightness *= fade_amt;
mBrightness *= mFade_amt;
PointLight::submitLights(lm, staticLighting);
mBrightness = mBrightness_save;
return;

View file

@ -66,10 +66,10 @@ public:
class SpotLightProxy : public SpotLight
{
F32 fade_amt;
F32 mFade_amt;
public:
SpotLightProxy() { fade_amt = 1.0f; }
SpotLightProxy() { mFade_amt = 1.0f; }
void force_ghost()
{
@ -79,7 +79,7 @@ public:
void setFadeAmount(F32 fade_amt)
{
this->fade_amt = fade_amt;
mFade_amt = fade_amt;
mLight->setBrightness(mBrightness*fade_amt);
}
@ -130,10 +130,10 @@ public:
void submitLights(LightManager* lm, bool staticLighting)
{
if (mAnimState.active && mAnimationData && fade_amt < 1.0f)
if (mAnimState.active && mAnimationData && mFade_amt < 1.0f)
{
F32 mBrightness_save = mBrightness;
mBrightness *= fade_amt;
mBrightness *= mFade_amt;
SpotLight::submitLights(lm, staticLighting);
mBrightness = mBrightness_save;
return;