diff options
| author | fgfemperor <fgfemperor@gmail.com> | 2009-12-21 20:30:01 +0000 |
|---|---|---|
| committer | fgfemperor <fgfemperor@gmail.com> | 2009-12-21 20:30:01 +0000 |
| commit | acb9e7ca290d2d71bb8bd0da68edc40bdcb1d266 (patch) | |
| tree | 1afec9139677a3095d26d272caf0d5f2acd19092 /Source/Core | |
| parent | 5e7607b700e85967febb635862645aff3c8957f3 (diff) | |
NSMB background fix. Fixes 1654.
There was a problem with the fog calculations... Now NSMB shows the background, while the fog still works!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4714 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp index 1d7478c018..4ec14ea948 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp @@ -206,7 +206,7 @@ void PixelShaderManager::SetConstants() { if(!g_ActiveConfig.bDisableFog) { - float a = bpmem.fog.a.GetA() * ((float)(1 << bpmem.fog.b_shift)); + float a = bpmem.fog.a.GetA() * ((float)(1 << (bpmem.fog.b_shift - 1))); float b = ((float)bpmem.fog.b_magnitude / 8388638) * ((float)(1 << (bpmem.fog.b_shift - 1))); SetPSConstant4f(C_FOG + 1, a, b, bpmem.fog.c_proj_fsel.GetC(), 0); } |
