Render with full white ambient color on static nodes outside world lighting mode.

This commit is contained in:
parax0 2016-01-06 03:47:54 -07:00
parent a2bb48f53f
commit c7d8e47d73
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ void CStaticNode::Draw(FRenderOptions Options, int ComponentIndex, const SViewIn
{
if (!mpModel) return;
CGraphics::sVertexBlock.COLOR0_Amb = CColor::skBlack;
bool IsLightingEnabled = CGraphics::sLightMode == CGraphics::eWorldLighting;
CGraphics::sVertexBlock.COLOR0_Amb = (IsLightingEnabled ? CColor::skBlack : CColor::skWhite);
float Mul = CGraphics::sWorldLightMultiplier;
CGraphics::sPixelBlock.TevColor = CColor(Mul,Mul,Mul);
CGraphics::sPixelBlock.TintColor = TintColor(ViewInfo);