diff options
| author | 2017-04-21 17:03:22 -0400 | |
|---|---|---|
| committer | 2017-04-21 17:03:22 -0400 | |
| commit | ea53d6085a454215b4279e1c365273ef0b0202c8 (patch) | |
| tree | 541a9579b76d955a5a543cd6c8451e489424c20c /src/video_core/swrasterizer/texturing.cpp | |
| parent | Merge pull request #2666 from yuriks/gl-cleanups (diff) | |
| parent | gl_shader_gen: remove TODO about Lerp behaviour verification. The implementat... (diff) | |
| download | yuzu-ea53d6085a454215b4279e1c365273ef0b0202c8.tar.gz yuzu-ea53d6085a454215b4279e1c365273ef0b0202c8.tar.xz yuzu-ea53d6085a454215b4279e1c365273ef0b0202c8.zip | |
Merge pull request #2671 from wwylele/dot3-rgba
rasterizer: implement combiner operation 7 (Dot3_RGBA)
Diffstat (limited to 'src/video_core/swrasterizer/texturing.cpp')
| -rw-r--r-- | src/video_core/swrasterizer/texturing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/swrasterizer/texturing.cpp b/src/video_core/swrasterizer/texturing.cpp index eb18e4ba4..aeb6aeb8c 100644 --- a/src/video_core/swrasterizer/texturing.cpp +++ b/src/video_core/swrasterizer/texturing.cpp | |||
| @@ -169,7 +169,8 @@ Math::Vec3<u8> ColorCombine(TevStageConfig::Operation op, const Math::Vec3<u8> i | |||
| 169 | result = (result * input[2].Cast<int>()) / 255; | 169 | result = (result * input[2].Cast<int>()) / 255; |
| 170 | return result.Cast<u8>(); | 170 | return result.Cast<u8>(); |
| 171 | } | 171 | } |
| 172 | case Operation::Dot3_RGB: { | 172 | case Operation::Dot3_RGB: |
| 173 | case Operation::Dot3_RGBA: { | ||
| 173 | // Not fully accurate. Worst case scenario seems to yield a +/-3 error. Some HW results | 174 | // Not fully accurate. Worst case scenario seems to yield a +/-3 error. Some HW results |
| 174 | // indicate that the per-component computation can't have a higher precision than 1/256, | 175 | // indicate that the per-component computation can't have a higher precision than 1/256, |
| 175 | // while dot3_rgb((0x80,g0,b0), (0x7F,g1,b1)) and dot3_rgb((0x80,g0,b0), (0x80,g1,b1)) give | 176 | // while dot3_rgb((0x80,g0,b0), (0x7F,g1,b1)) and dot3_rgb((0x80,g0,b0), (0x80,g1,b1)) give |