Remove dependency of PICA regs in fragment config (#541)

Remove dependency of PICA regs in fragment config

Nyom

Nyom part 2

Nyom 3: The final nyom

Nyom 4: The nyomening

Nyom 5: The final Nyom for real
This commit is contained in:
Paris Oplopoios 2024-07-20 02:37:49 +03:00 committed by GitHub
parent eb7e02fbc2
commit af552edd9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 109 additions and 120 deletions

View file

@ -278,6 +278,11 @@ namespace PICA {
};
}
// There's actually 8 different LUTs (SP0-SP7), one for each light with different indices (8-15)
// We use an unused LUT value for "this light source's spotlight" instead and figure out which light source to use in compileLutLookup
// This is particularly intuitive in several places, such as checking if a LUT is enabled
static constexpr int spotlightLutIndex = 2;
enum class TextureFmt : u32 {
RGBA8 = 0x0,
RGB8 = 0x1,