summaryrefslogtreecommitdiffstats
path: root/src/render/PointLights.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-09 15:45:38 +0200
committeraap <aap@papnet.eu>2020-08-09 15:45:38 +0200
commit6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43 (patch)
tree27a75db9af9e454c3593169e73e554d94782adb4 /src/render/PointLights.h
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar.gz
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar.bz2
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar.lz
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar.xz
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.tar.zst
re3-6514bc6b39faf5cfd6ecb1d45370e2c9c50e8f43.zip
Diffstat (limited to '')
-rw-r--r--src/render/PointLights.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/PointLights.h b/src/render/PointLights.h
index 9e94328f..827200b9 100644
--- a/src/render/PointLights.h
+++ b/src/render/PointLights.h
@@ -20,6 +20,9 @@ class CPointLights
public:
static int16 NumLights;
static CRegisteredPointLight aLights[NUMPOINTLIGHTS];
+ static CVector aCachedMapReads[32];
+ static float aCachedMapReadResults[32];
+ static int32 NextCachedValue;
enum {
LIGHT_POINT,
@@ -37,9 +40,11 @@ public:
FOG_ALWAYS
};
+ static void Init(void);
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);
+ static bool ProcessVerticalLineUsingCache(CVector coors, float *groundZ);
};