Shadergen: Fix small register decoding oopsie

This commit is contained in:
wheremyfoodat 2024-07-19 03:01:12 +03:00
parent 25098082c7
commit ac55c3e324
3 changed files with 4 additions and 3 deletions

View file

@ -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);