Minor game mode fixes
This commit is contained in:
parent
c7d8e47d73
commit
7eeb90b925
|
@ -210,7 +210,7 @@ void CScene::AddSceneToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
|
|||
std::vector<CSceneNode*>& rNodeVec = it->second;
|
||||
|
||||
for (u32 iNode = 0; iNode < rNodeVec.size(); iNode++)
|
||||
if (rNodeVec[iNode]->IsVisible())
|
||||
if (ViewInfo.GameMode || rNodeVec[iNode]->IsVisible())
|
||||
rNodeVec[iNode]->AddToRenderer(pRenderer, ViewInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ void CStaticNode::Draw(FRenderOptions Options, int ComponentIndex, const SViewIn
|
|||
{
|
||||
if (!mpModel) return;
|
||||
|
||||
bool IsLightingEnabled = CGraphics::sLightMode == CGraphics::eWorldLighting;
|
||||
bool IsLightingEnabled = CGraphics::sLightMode == CGraphics::eWorldLighting || ViewInfo.GameMode;
|
||||
CGraphics::sVertexBlock.COLOR0_Amb = (IsLightingEnabled ? CColor::skBlack : CColor::skWhite);
|
||||
float Mul = CGraphics::sWorldLightMultiplier;
|
||||
CGraphics::sPixelBlock.TevColor = CColor(Mul,Mul,Mul);
|
||||
|
|
Loading…
Reference in New Issue