mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
TextureCache: Use same color coefficients for EFB2Tex as EFB2RAM
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user