diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-26 00:45:05 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-31 07:52:42 +0200 |
commit | 33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7 (patch) | |
tree | 2ff0e6c796bcc3d489c7fb3e67a78bccbc4a3cc4 /src/video_core/rasterizer.cpp | |
parent | rasterizer: Remove unnecessary 'using' for BlendEquation. (diff) | |
download | yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.gz yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.bz2 yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.lz yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.xz yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.zst yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/rasterizer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index e0f8d9e6f..113b573f8 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp @@ -402,11 +402,16 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0, auto GetSource = [&](Source source) -> Math::Vec4<u8> { switch (source) { - // TODO: What's the difference between these two? case Source::PrimaryColor: + + // HACK: Until we implement fragment lighting, use primary_color case Source::PrimaryFragmentColor: return primary_color; + // HACK: Until we implement fragment lighting, use zero + case Source::SecondaryFragmentColor: + return {0, 0, 0, 0}; + case Source::Texture0: return texture_color[0]; |