From c7d8e47d735d18ebc79f55daf1da5714e8e1915a Mon Sep 17 00:00:00 2001 From: parax0 Date: Wed, 6 Jan 2016 03:47:54 -0700 Subject: [PATCH] Render with full white ambient color on static nodes outside world lighting mode. --- src/Core/Scene/CStaticNode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Scene/CStaticNode.cpp b/src/Core/Scene/CStaticNode.cpp index 2163863c..9801c05f 100644 --- a/src/Core/Scene/CStaticNode.cpp +++ b/src/Core/Scene/CStaticNode.cpp @@ -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);