summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
diff options
context:
space:
mode:
authorRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2011-01-07 19:23:57 +0000
committerRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2011-01-07 19:23:57 +0000
commitf869281301a9b638f4fdf1ab3f4168f12909be2c (patch)
tree2d8d6767dd967d15b13dd8b3cb3100d1f7eb9b0e /Source/Core/VideoCommon/Src/PixelShaderManager.cpp
parent62b79028efdfcccb2886a02a9aba979df34c4727 (diff)
normalize the efb to texture process for color textures to make it work the same in all the plugins and with the same accuracy as real hardware (almost :))
please test for regressions and fixes. some little changes to make pixel shader more dx9 sm2.0 friendly. the condition is not to use pixel lighting ( sorry no hardware support for the quantity of parameters needed). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6777 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
index 1e3ed1d321..5f07615592 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp
@@ -395,10 +395,10 @@ void PixelShaderManager::SetFogParamChanged()
s_bFogParamChanged = true;
}
-void PixelShaderManager::SetColorMatrix(const float* pmatrix, const float* pfConstAdd)
+void PixelShaderManager::SetColorMatrix(const float* pmatrix)
{
- SetMultiPSConstant4fv(C_COLORMATRIX,4,pmatrix);
- SetPSConstant4fv(C_COLORMATRIX+4, pfConstAdd);
+ SetMultiPSConstant4fv(C_COLORMATRIX,7,pmatrix);
+ s_nColorsChanged[0] = s_nColorsChanged[1] = 15;
}
void PixelShaderManager::InvalidateXFRange(int start, int end)