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