mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 03:11:04 +00:00
Pica/Rasterizer: Add SecondaryFragmentColor
This commit is contained in:
parent
e4e2c929af
commit
cc8599e8f1
@ -217,7 +217,9 @@ struct Regs {
|
||||
struct TevStageConfig {
|
||||
enum class Source : u32 {
|
||||
PrimaryColor = 0x0,
|
||||
|
||||
PrimaryFragmentColor = 0x1,
|
||||
SecondaryFragmentColor = 0x2,
|
||||
|
||||
Texture0 = 0x3,
|
||||
Texture1 = 0x4,
|
||||
|
@ -384,11 +384,14 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
|
||||
|
||||
auto GetSource = [&](Source source) -> Math::Vec4<u8> {
|
||||
switch (source) {
|
||||
// TODO: What's the difference between these two?
|
||||
// TODO: Implement fragment lighting. The following is a bunch of hacks.
|
||||
case Source::PrimaryColor:
|
||||
case Source::PrimaryFragmentColor:
|
||||
return primary_color;
|
||||
|
||||
case Source::SecondaryFragmentColor:
|
||||
return 0;
|
||||
|
||||
case Source::Texture0:
|
||||
return texture_color[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user