diff options
| author | 2015-05-25 18:45:05 -0400 | |
|---|---|---|
| committer | 2015-05-31 01:52:42 -0400 | |
| commit | 33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7 (patch) | |
| tree | 2ff0e6c796bcc3d489c7fb3e67a78bccbc4a3cc4 /src/video_core/rasterizer.cpp | |
| parent | rasterizer: Remove unnecessary 'using' for BlendEquation. (diff) | |
| download | yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.gz yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.tar.xz yuzu-33b9abb91e17e39ebadfa34ff3f6dac9f07f87d7.zip | |
Pica: Use zero for the SecondaryFragmentColor source.
- This is a workaround until we support fragment lighting.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -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, | |||
| 402 | 402 | ||
| 403 | auto GetSource = [&](Source source) -> Math::Vec4<u8> { | 403 | auto GetSource = [&](Source source) -> Math::Vec4<u8> { |
| 404 | switch (source) { | 404 | switch (source) { |
| 405 | // TODO: What's the difference between these two? | ||
| 406 | case Source::PrimaryColor: | 405 | case Source::PrimaryColor: |
| 406 | |||
| 407 | // HACK: Until we implement fragment lighting, use primary_color | ||
| 407 | case Source::PrimaryFragmentColor: | 408 | case Source::PrimaryFragmentColor: |
| 408 | return primary_color; | 409 | return primary_color; |
| 409 | 410 | ||
| 411 | // HACK: Until we implement fragment lighting, use zero | ||
| 412 | case Source::SecondaryFragmentColor: | ||
| 413 | return {0, 0, 0, 0}; | ||
| 414 | |||
| 410 | case Source::Texture0: | 415 | case Source::Texture0: |
| 411 | return texture_color[0]; | 416 | return texture_color[0]; |
| 412 | 417 | ||