mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 14:28:34 +00:00
Fixes Mario Tennis Gimmick Courts and adds support for FastDepthCalc
- Calculate ZSlope every flush but only set PixelShader Constant on Reset Buffer when zfreeze - Fixed another Pixel Shader bug in D3D that was giving me grief
This commit is contained in:
parent
6d5065c58d
commit
add59b3bea
7 changed files with 52 additions and 26 deletions
|
@ -50,7 +50,7 @@ void PixelShaderManager::Dirty()
|
|||
SetZTextureBias();
|
||||
SetViewportChanged();
|
||||
SetEfbScaleChanged();
|
||||
SetZSlope(0, 0, 1);
|
||||
SetZSlope(0, 0, (float)0xFFFFFF);
|
||||
SetIndTexScaleChanged(false);
|
||||
SetIndTexScaleChanged(true);
|
||||
SetIndMatrixChanged(0);
|
||||
|
@ -116,7 +116,8 @@ void PixelShaderManager::SetConstants()
|
|||
s_bViewPortChanged = false;
|
||||
}
|
||||
|
||||
if (s_bEFBScaleChanged) {
|
||||
if (s_bEFBScaleChanged)
|
||||
{
|
||||
constants.efbscale[0] = 1.0f / float(Renderer::EFBToScaledXf(1));
|
||||
constants.efbscale[1] = 1.0f / float(Renderer::EFBToScaledYf(1));
|
||||
dirty = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue