Added option to disable fog as it's been requested a few times (mainly for RE games, see issue 715 and issue 181)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2814 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s
2009-04-01 12:31:18 +00:00
parent d8dfcf2a4b
commit f8335271cd
5 changed files with 28 additions and 12 deletions

View File

@ -247,11 +247,12 @@ void BPWritten(int addr, int changes, int newval)
case BPMEM_FOGBEXPONENT:
case BPMEM_FOGBMAGNITUDE:
case BPMEM_FOGPARAM3:
if (changes) {
VertexManager::Flush();
((u32*)&bpmem)[addr] = newval;
PixelShaderManager::SetFogParamChanged();
}
if (!g_Config.bDisableFog)
if (changes) {
VertexManager::Flush();
((u32*)&bpmem)[addr] = newval;
PixelShaderManager::SetFogParamChanged();
}
break;
case BPMEM_FOGCOLOR: