diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-04-16 09:56:29 +1200 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-04-16 09:56:29 +1200 |
| commit | 1f0da63cbe0ea52a78d60b608d4b322b2bfafb88 (patch) | |
| tree | 1fd710b4a3f7e9a3d039494501e93296cd1b2cc6 /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 3c83d1150ed6d994b3a37b4d94011693aee71177 (diff) | |
| parent | 068f26d2aaadb07a5fc7315cf291c78cfd4d2643 (diff) | |
Merge pull request #276 from neobrain/master
PixelShaderGen: Color combiner compare mode fix and simplification
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 900b63fcb3..5dd8b2841e 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -782,7 +782,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP "((idot(tevin_a.rgb, comp24) > idot(tevin_b.rgb, comp24)) ? tevin_c.rgb : int3(0,0,0))", // TEVCMP_BGR24_GT "((idot(tevin_a.rgb, comp24) == idot(tevin_b.rgb, comp24)) ? tevin_c.rgb : int3(0,0,0))", // TEVCMP_BGR24_EQ "(max(sign(tevin_a.rgb - tevin_b.rgb), int3(0,0,0)) * tevin_c.rgb)", // TEVCMP_RGB8_GT - "((int3(255,255,255) - max(sign(abs(tevin_a.rgb - tevin_b.rgb)), int3(0,0,0))) * tevin_c.rgb)" // TEVCMP_RGB8_EQ + "((int3(1,1,1) - sign(abs(tevin_a.rgb - tevin_b.rgb))) * tevin_c.rgb)" // TEVCMP_RGB8_EQ }; int mode = (cc.shift<<1)|cc.op; |
