mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Fix colored fog in Polymer.
This fixes a ridiculous interaction problem between non-black fog and additive lighting passes. Plagman is stupid. git-svn-id: https://svn.eduke32.com/eduke32@1965 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b996f92c28
commit
58ba283c45
1 changed files with 1 additions and 1 deletions
|
@ -4376,7 +4376,7 @@ static int32_t polymer_bindmaterial(_prmaterial material, int16_t* lights,
|
|||
programbits |= prprogrambits[PR_BIT_MIRROR_MAP].bit;
|
||||
|
||||
// PR_BIT_FOG
|
||||
if (!material.mirrormap)
|
||||
if (!curlight && !material.mirrormap)
|
||||
programbits |= prprogrambits[PR_BIT_FOG].bit;
|
||||
|
||||
// PR_BIT_GLOW_MAP
|
||||
|
|
Loading…
Reference in a new issue