summaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-10-24 00:58:04 +0200
committerGravatar Tony Wasserka2014-12-20 18:05:53 +0100
commit7e210e0229b9caef77c80fea7c056c3913e68129 (patch)
tree5b043321e3f8d04208128843c94bff1626f3289f /src/video_core/debug_utils
parentPica: Merge texture lookup logic for DebugUtils and Rasterizer. (diff)
downloadyuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.gz
yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.xz
yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.zip
Pica: Further improve Tev emulation.
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 6c26138da..3cc22f436 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -573,20 +573,26 @@ void DumpTevStageConfig(const std::array<Pica::Regs::TevStageConfig,6>& stages)
573 const std::map<Source, std::string> source_map = { 573 const std::map<Source, std::string> source_map = {
574 { Source::PrimaryColor, "PrimaryColor" }, 574 { Source::PrimaryColor, "PrimaryColor" },
575 { Source::Texture0, "Texture0" }, 575 { Source::Texture0, "Texture0" },
576 { Source::Texture1, "Texture1" },
577 { Source::Texture2, "Texture2" },
576 { Source::Constant, "Constant" }, 578 { Source::Constant, "Constant" },
577 { Source::Previous, "Previous" }, 579 { Source::Previous, "Previous" },
578 }; 580 };
579 581
580 const std::map<ColorModifier, std::string> color_modifier_map = { 582 const std::map<ColorModifier, std::string> color_modifier_map = {
581 { ColorModifier::SourceColor, { "%source.rgb" } } 583 { ColorModifier::SourceColor, { "%source.rgb" } },
584 { ColorModifier::SourceAlpha, { "%source.aaa" } },
582 }; 585 };
583 const std::map<AlphaModifier, std::string> alpha_modifier_map = { 586 const std::map<AlphaModifier, std::string> alpha_modifier_map = {
584 { AlphaModifier::SourceAlpha, "%source.a" } 587 { AlphaModifier::SourceAlpha, "%source.a" },
588 { AlphaModifier::OneMinusSourceAlpha, "(255 - %source.a)" },
585 }; 589 };
586 590
587 std::map<Operation, std::string> combiner_map = { 591 std::map<Operation, std::string> combiner_map = {
588 { Operation::Replace, "%source1" }, 592 { Operation::Replace, "%source1" },
589 { Operation::Modulate, "(%source1 * %source2) / 255" }, 593 { Operation::Modulate, "(%source1 * %source2) / 255" },
594 { Operation::Add, "(%source1 + %source2)" },
595 { Operation::Lerp, "lerp(%source1, %source2, %source3)" },
590 }; 596 };
591 597
592 auto ReplacePattern = 598 auto ReplacePattern =