diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-15 17:19:32 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-17 23:04:26 +0200 |
commit | d0404cbdb77bd82abf578ce28093990db94743f2 (patch) | |
tree | 1a7232c3dcdd6c371ab5fbde0fc6bf04c5bc7005 /src/render/PointLights.h | |
parent | Merge pull request #1217 from Nopey/master (diff) | |
download | re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.gz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.bz2 re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.lz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.xz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.zst re3-d0404cbdb77bd82abf578ce28093990db94743f2.zip |
Diffstat (limited to 'src/render/PointLights.h')
-rw-r--r-- | src/render/PointLights.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/render/PointLights.h b/src/render/PointLights.h deleted file mode 100644 index 9e94328f..00000000 --- a/src/render/PointLights.h +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -class CRegisteredPointLight -{ -public: - CVector coors; - CVector dir; - float radius; - float red; - float green; - float blue; - int8 type; - int8 fogType; - bool castExtraShadows; -}; -VALIDATE_SIZE(CRegisteredPointLight, 0x2C); - -class CPointLights -{ -public: - static int16 NumLights; - static CRegisteredPointLight aLights[NUMPOINTLIGHTS]; - - enum { - LIGHT_POINT, - LIGHT_DIRECTIONAL, - LIGHT_DARKEN, // no effects at all - // these have only fog, otherwise no difference? - // only used by CEntity::ProcessLightsForEntity it seems - // and there used together with fog type - LIGHT_FOGONLY_ALWAYS, - LIGHT_FOGONLY, - }; - enum { - FOG_NONE, - FOG_NORMAL, // taken from Foggyness - FOG_ALWAYS - }; - - static void InitPerFrame(void); - static void AddLight(uint8 type, CVector coors, CVector dir, float radius, float red, float green, float blue, uint8 fogType, bool castExtraShadows); - static float GenerateLightsAffectingObject(Const CVector *objCoors); - static void RemoveLightsAffectingObject(void); - static void RenderFogEffect(void); -}; |