mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Disagle hw lighting for Rects.
This commit is contained in:
parent
dbb827efc1
commit
c2b3fc13eb
|
@ -1760,8 +1760,10 @@ graphics::CombinerProgram * CombinerProgramBuilder::buildCombinerProgram(Combine
|
||||||
|
|
||||||
const bool bUseLod = combinerInputs.usesLOD();
|
const bool bUseLod = combinerInputs.usesLOD();
|
||||||
const bool bUseTextures = combinerInputs.usesTexture();
|
const bool bUseTextures = combinerInputs.usesTexture();
|
||||||
const bool bUseHWLight =
|
const bool bUseHWLight = g_cycleType <= G_CYC_2CYCLE && // Rects not use lighting
|
||||||
config.generalEmulation.enableHWLighting != 0 && GBI.isHWLSupported() && combinerInputs.usesShadeColor();
|
config.generalEmulation.enableHWLighting != 0 &&
|
||||||
|
GBI.isHWLSupported() &&
|
||||||
|
combinerInputs.usesShadeColor();
|
||||||
|
|
||||||
if (bUseHWLight)
|
if (bUseHWLight)
|
||||||
combinerInputs.addInput(G_GCI_HW_LIGHT);
|
combinerInputs.addInput(G_GCI_HW_LIGHT);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user