summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-12-14 23:58:23 +1000
committerStenzek <stenzek@gmail.com>2016-12-15 02:20:46 +1000
commitaccce4294aec05f59571c9983811624e2b4f5a70 (patch)
tree4da845bbabebfaa1ac4aeb427b638089dc1869dc /Source/Core/VideoBackends/D3D/PixelShaderCache.cpp
parentd6cdf4976955fd7c03e28f2fa5035cb3b84c1b21 (diff)
TextureCache: Use same color coefficients for EFB2Tex as EFB2RAM
Diffstat (limited to 'Source/Core/VideoBackends/D3D/PixelShaderCache.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/PixelShaderCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp b/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp
index 5364c58cdd..6b62e1575f 100644
--- a/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp
+++ b/Source/Core/VideoBackends/D3D/PixelShaderCache.cpp
@@ -104,7 +104,7 @@ const char color_matrix_program_code[] = {"sampler samp0 : register(s0);\n"
"in float4 pos : SV_Position,\n"
"in float3 uv0 : TEXCOORD0){\n"
"float4 texcol = Tex0.Sample(samp0,uv0);\n"
- "texcol = round(texcol * cColMatrix[5])*cColMatrix[6];\n"
+ "texcol = floor(texcol * cColMatrix[5])*cColMatrix[6];\n"
"ocol0 = "
"float4(dot(texcol,cColMatrix[0]),dot(texcol,cColMatrix["
"1]),dot(texcol,cColMatrix[2]),dot(texcol,cColMatrix[3]))"
@@ -126,7 +126,7 @@ const char color_matrix_program_code_msaa[] = {
"for(int i = 0; i < SAMPLES; ++i)\n"
" texcol += Tex0.Load(int3(uv0.x*(width), uv0.y*(height), uv0.z), i);\n"
"texcol /= SAMPLES;\n"
- "texcol = round(texcol * cColMatrix[5])*cColMatrix[6];\n"
+ "texcol = floor(texcol * cColMatrix[5])*cColMatrix[6];\n"
"ocol0 = "
"float4(dot(texcol,cColMatrix[0]),dot(texcol,cColMatrix[1]),dot(texcol,cColMatrix[2]),dot("
"texcol,cColMatrix[3])) + cColMatrix[4];\n"