- change per-level attenuation of dynamic lights for each viewpoint.

To avoid unnecessary work, the current state is tracked.
This commit is contained in:
Christoph Oelckers 2019-01-29 20:09:06 +01:00
commit 4af5ea25c1
5 changed files with 16 additions and 7 deletions

View file

@ -53,6 +53,7 @@ void InitializeActorLights(TArray<FLightAssociation> &LightAssociations);
TArray<UserShaderDesc> usershaders;
extern TDeletingArray<FLightDefaults *> LightDefaults;
extern int AttenuationIsSet;
//-----------------------------------------------------------------------------
@ -1777,6 +1778,7 @@ void ParseGLDefs()
const char *defsLump = NULL;
LightDefaults.DeleteAndClear();
AttenuationIsSet = -1;
//gl_DestroyUserShaders(); function says 'todo'
switch (gameinfo.gametype)
{