Added 'NoPerPixelLighting' flag to models to force it to not use per-pixel lighting. Main use case is for voxels that have been converted to models.

This commit is contained in:
nashmuhandes 2021-10-21 15:55:57 +08:00 committed by Christoph Oelckers
commit 1c3e0f1a75
3 changed files with 6 additions and 1 deletions

View file

@ -524,6 +524,10 @@ static void ParseModelDefLump(int Lump)
{
smf.flags |= MDL_USEACTORROLL;
}
else if (sc.Compare("noperpixellighting"))
{
smf.flags |= MDL_NOPERPIXELLIGHTING;
}
else if (sc.Compare("rotating"))
{
smf.flags |= MDL_ROTATING;