mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
Shadergen: Fix small register decoding oopsie
This commit is contained in:
parent
25098082c7
commit
ac55c3e324
3 changed files with 4 additions and 3 deletions
|
@ -116,7 +116,7 @@ namespace PICA {
|
|||
|
||||
for (int i = 0; i < totalLightCount; i++) {
|
||||
auto& light = lights[i];
|
||||
const u32 lightConfig = 0x149 + 0x10 * i;
|
||||
const u32 lightConfig = regs[InternalRegs::Light0Config + 0x10 * i];
|
||||
|
||||
light.num = (regs[InternalRegs::LightPermutation] >> (i * 4)) & 0x7;
|
||||
light.directional = Helpers::getBit<0>(lightConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue