turn num lights into spec constant

This commit is contained in:
Samuliak 2024-07-05 22:12:00 +02:00
parent 0c19f5a3ea
commit 0752a583b5
3 changed files with 9 additions and 7 deletions

View file

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