- change per-level attenuation of dynamic lights for each viewpoint.
To avoid unnecessary work, the current state is tracked.
This commit is contained in:
parent
6451b7d592
commit
4af5ea25c1
5 changed files with 16 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue