diff options
| author | magumagu <magumagu9@gmail.com> | 2015-01-25 17:22:29 -0800 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2015-01-25 19:57:07 -0800 |
| commit | 6c1bdfe04cd12cbc75c86d6b71472393443426a5 (patch) | |
| tree | 8fe79713ea07dd9733535720e9b32abb6cc540b5 /Source/Core/VideoCommon/TextureConversionShader.cpp | |
| parent | ef75f3005d5e09edaa739d298f644be1f28e3f19 (diff) | |
More work.
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConversionShader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index 3e09113518..e7600d6248 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -84,7 +84,7 @@ static void WriteSwizzler(char*& p, u32 format, API_TYPE ApiType) WRITE(p, " out float4 ocol0 : SV_Target, in float4 rawpos : SV_Position)\n"); WRITE(p, "{\n" " int2 sampleUv;\n" - " int2 uv1 = int2((rawpos + 1) / 2 * float2(640, 528));\n" + " int2 uv1 = int2(rawpos.xy);\n" ); } @@ -127,7 +127,7 @@ static void WriteSampleColor(char*& p, const char* colorComp, const char* dest, } else { - WRITE(p, " %s = Tex0.Sample(samp0, float3(uv0 + float2(%d, 0) * sample_offset, 0.0)).%s;\n", + WRITE(p, " %s = Tex0.Sample(samp0, uv0 + float2(%d, 0) * sample_offset).%s;\n", dest, xoffset, colorComp ); } @@ -146,7 +146,6 @@ static void WriteColorToIntensity(char*& p, const char* src, const char* dest) static void WriteToBitDepth(char*& p, u8 depth, const char* src, const char* dest) { - //WRITE(p, " ocol0 = float4(1,1,1,1;\n"); WRITE(p, " %s = floor(%s * 255.0 / exp2(8.0 - %d.0));\n", dest, src, depth); } |
