Merge pull request #2372 from Armada651/msaa-depth
PixelShaderCache: Fix MSAA depth copy shader.
This commit is contained in:
commit
e0a7926ef7
|
@ -180,8 +180,6 @@ const char depth_matrix_program_msaa[] = {
|
||||||
" for(int i = 0; i < SAMPLES; ++i)\n"
|
" for(int i = 0; i < SAMPLES; ++i)\n"
|
||||||
" texcol += Tex0.Load(int3(uv0.x*(width), uv0.y*(height), uv0.z), i);\n"
|
" texcol += Tex0.Load(int3(uv0.x*(width), uv0.y*(height), uv0.z), i);\n"
|
||||||
" texcol /= SAMPLES;\n"
|
" texcol /= SAMPLES;\n"
|
||||||
|
|
||||||
" float4 texcol = Tex0.Sample(samp0,uv0);\n"
|
|
||||||
" int depth = int(round(texcol.x * float(0xFFFFFF)));\n"
|
" int depth = int(round(texcol.x * float(0xFFFFFF)));\n"
|
||||||
|
|
||||||
// Convert to Z24 format
|
// Convert to Z24 format
|
||||||
|
|
Loading…
Reference in New Issue