Same with the None mode

This commit is contained in:
Pokechu22 2022-02-28 12:11:43 -08:00
parent 694f4b7acb
commit 3f96e6c7ee
1 changed files with 5 additions and 0 deletions

View File

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