Shadergen: Fix small register decoding oopsie
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -77,6 +77,7 @@ namespace PICA {
|
||||
Light0Z = 0x145,
|
||||
Light0SpotlightXY = 0x146,
|
||||
Light0SpotlightZ = 0x147,
|
||||
Light0Config = 0x149,
|
||||
Light0AttenuationBias = 0x14A,
|
||||
Light0AttenuationScale = 0x14B,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user