mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Fix FogBlendEnabled condition.
Fixed Perfect Dark visor and lighting issues #427
This commit is contained in:
parent
96aab6c9ad
commit
cc600d499b
|
@ -719,7 +719,7 @@ void ShaderCombiner::updateGammaCorrection(bool _bForce)
|
|||
void ShaderCombiner::updateFogMode(bool _bForce)
|
||||
{
|
||||
const u32 blender = (gDP.otherMode.l >> 16);
|
||||
const int nFogBlendEnabled = config.generalEmulation.enableFog != 0 && gSP.fog.multiplier > 0 && (gDP.otherMode.c1_m1a == 3 || gDP.otherMode.c1_m2a == 3 || gDP.otherMode.c2_m1a == 3 || gDP.otherMode.c2_m2a == 3) ? 256 : 0;
|
||||
const int nFogBlendEnabled = config.generalEmulation.enableFog != 0 && gSP.fog.multiplier >= 0 && (gDP.otherMode.c1_m1a == 3 || gDP.otherMode.c1_m2a == 3 || gDP.otherMode.c2_m1a == 3 || gDP.otherMode.c2_m2a == 3) ? 256 : 0;
|
||||
int nFogUsage = ((gSP.geometryMode & G_FOG) != 0) ? 1 : 0;
|
||||
int nSpecialBlendMode = 0;
|
||||
switch (blender) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user