Same with the None mode
This commit is contained in:
parent
694f4b7acb
commit
3f96e6c7ee
|
@ -218,6 +218,11 @@ static float CalculateLightAttn(const LightPointer* light, Vec3* _ldir, const Ve
|
|||
switch (chan.attnfunc)
|
||||
{
|
||||
case AttenuationFunc::None:
|
||||
{
|
||||
PanicAlertFmt("None lighting in use!");
|
||||
ldir = ldir.Normalized();
|
||||
break;
|
||||
}
|
||||
case AttenuationFunc::Dir:
|
||||
{
|
||||
ldir = ldir.Normalized();
|
||||
|
|
Loading…
Reference in New Issue