mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 06:15:36 +00:00
Fixes linker errors when Basic Lighting is removed
This commit is contained in:
parent
463cd50d0a
commit
59c81f9179
3 changed files with 24 additions and 3 deletions
|
|
@ -39,6 +39,9 @@
|
|||
#include "gfx/gfxCardProfile.h"
|
||||
#include "gfx/gfxTextureProfile.h"
|
||||
|
||||
#ifndef TORQUE_BASIC_LIGHTING
|
||||
F32 AdvancedLightManager::smProjectedShadowFilterDistance = 40.0f;
|
||||
#endif
|
||||
|
||||
ImplementEnumType( ShadowType,
|
||||
"\n\n"
|
||||
|
|
|
|||
|
|
@ -97,6 +97,10 @@ public:
|
|||
|
||||
LightShadowMap* findShadowMapForObject( SimObject *object );
|
||||
|
||||
#ifndef TORQUE_BASIC_LIGHTING
|
||||
static F32 getShadowFilterDistance() { return smProjectedShadowFilterDistance; }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
// LightManager
|
||||
|
|
@ -138,6 +142,12 @@ protected:
|
|||
|
||||
LightingShaderConstants* getLightingShaderConstants(GFXShaderConstBuffer* shader);
|
||||
|
||||
#ifndef TORQUE_BASIC_LIGHTING
|
||||
/// This is used to determine the distance
|
||||
/// at which the shadow filtering PostEffect
|
||||
/// will be enabled for ProjectedShadow.
|
||||
static F32 smProjectedShadowFilterDistance;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _ADVANCEDLIGHTMANAGER_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue