mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-16 04:07:08 +12:00
turn config1 into a spec constant
This commit is contained in:
parent
0752a583b5
commit
5d5df1931f
3 changed files with 10 additions and 7 deletions
|
@ -386,6 +386,7 @@ void RendererMTL::drawVertices(PICA::PrimType primType, std::span<const PICA::Ve
|
|||
}
|
||||
pipelineHash.lightingEnabled = regs[0x008F] & 1;
|
||||
pipelineHash.lightingNumLights = (regs[0x01C2] & 0x7) + 1;
|
||||
pipelineHash.lightingConfig1 = regs[0x01C4u] >> 16; // Last 16 bits are unused, so skip them
|
||||
|
||||
// Blending and logic op
|
||||
pipelineHash.blendEnabled = (regs[PICA::InternalRegs::ColourOperation] & (1 << 8)) != 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue