I am implementing the shadow system found here, I have made all the changes in clientshadowmgr.cpp, and added worldlight.cpp/.h to game/client.
When I build the solution, I get these errors:
1>clientshadowmgr.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CWorldLights::GetBrightestLightSource(class Vector const &,class Vector &,class Vector &)" (?GetBrightestLightSource@CWorldLights@@QAE_NABVVector@@AAV2@1@Z) referenced in function "private: void __thiscall CClientShadowMgr::UpdateShadowDirectionFromLocalLightSource(unsigned short)" (?UpdateShadowDirectionFromLocalLightSource@CClientShadowMgr@@AAEXG@Z)
1>clientshadowmgr.obj : error LNK2001: unresolved external symbol "class CWorldLights * g_pWorldLights" (?g_pWorldLights@@3PAVCWorldLights@@A)
1>.\Release_mod_hl2\\client.dll : fatal error LNK1120: 2 unresolved externals
In worldlight.h:
//-----------------------------------------------------------------------------
// Singleton exposure
//-----------------------------------------------------------------------------
extern CWorldLights *g_pWorldLights;
Not sure how to fix this, if anyone has any help, I would appreciate it!