PixelShaderManager: Reload fog range adjustment shader constants upon viewport change.
Fixes issue 5618.
This commit is contained in:
parent
def578fea6
commit
e877b5019b
|
@ -93,7 +93,7 @@
|
|||
#define BPMEM_TEV_ALPHA_ENV 0xC1 // 0xC1 + (2 * 16)
|
||||
#define BPMEM_TEV_REGISTER_L 0xE0 // 0xE0 + (2 * 4)
|
||||
#define BPMEM_TEV_REGISTER_H 0xE1 // 0xE1 + (2 * 4)
|
||||
#define BPMEM_FOGRANGE 0xE8
|
||||
#define BPMEM_FOGRANGE 0xE8 // 0xE8 + 6
|
||||
#define BPMEM_FOGPARAM0 0xEE
|
||||
#define BPMEM_FOGBMAGNITUDE 0xEF
|
||||
#define BPMEM_FOGBEXPONENT 0xF0
|
||||
|
@ -988,7 +988,7 @@ struct BPMemory
|
|||
FourTexUnits tex[2]; //80-bf
|
||||
TevStageCombiner combiners[16]; //0xC0-0xDF
|
||||
TevReg tevregs[4]; //0xE0
|
||||
FogRangeParams fogRange;
|
||||
FogRangeParams fogRange; // 0xE8
|
||||
FogParams fog; //0xEE,0xEF,0xF0,0xF1,0xF2
|
||||
AlphaTest alpha_test; //0xF3
|
||||
ZTex1 ztex1; //0xf4,0xf5
|
||||
|
|
|
@ -413,6 +413,7 @@ void PixelShaderManager::SetZTextureBias(u32 bias)
|
|||
void PixelShaderManager::SetViewportChanged()
|
||||
{
|
||||
s_bDepthRangeChanged = true;
|
||||
s_bFogRangeAdjustChanged = true; // TODO: Shouldn't be necessary with an accurate fog range adjust implementation
|
||||
}
|
||||
|
||||
void PixelShaderManager::SetIndTexScaleChanged(u8 stagemask)
|
||||
|
|
Loading…
Reference in New Issue