summaryrefslogtreecommitdiffstats
path: root/src/render/2dEffect.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-06-30 21:36:53 +0200
committereray orçunus <erayorcunus@gmail.com>2019-06-30 21:36:53 +0200
commit99295827f79ccffa9d3976af2b9a19920d7d8bde (patch)
treee61ef805296e034766fca5e852224c6e522f8854 /src/render/2dEffect.h
parentMerge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff)
parentMerge pull request #80 from ShFil119/special (diff)
downloadre3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.gz
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.bz2
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.lz
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.xz
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.zst
re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.zip
Diffstat (limited to '')
-rw-r--r--src/render/2dEffect.h34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/render/2dEffect.h b/src/render/2dEffect.h
index 780d9b4f..1610f908 100644
--- a/src/render/2dEffect.h
+++ b/src/render/2dEffect.h
@@ -4,19 +4,45 @@ enum {
EFFECT_ATTRACTOR
};
+enum {
+ LIGHT_ON,
+ LIGHT_ON_NIGHT,
+ LIGHT_FLICKER,
+ LIGHT_FLICKER_NIGHT,
+ LIGHT_FLASH1,
+ LIGHT_FLASH1_NIGHT,
+ LIGHT_FLASH2,
+ LIGHT_FLASH2_NIGHT,
+ LIGHT_FLASH3,
+ LIGHT_FLASH3_NIGHT,
+ LIGHT_RANDOM_FLICKER,
+ LIGHT_RANDOM_FLICKER_NIGHT,
+ LIGHT_SPECIAL,
+ LIGHT_BRIDGE_FLASH1,
+ LIGHT_BRIDGE_FLASH2,
+};
+
+enum {
+ LIGHTFLAG_LOSCHECK = 1,
+ // same order as CPointLights flags, must start at 2
+ LIGHTFLAG_FOG_NORMAL = 2, // can have light and fog
+ LIGHTFLAG_FOG_ALWAYS = 4, // fog only
+ LIGHTFLAG_FOG = (LIGHTFLAG_FOG_NORMAL|LIGHTFLAG_FOG_ALWAYS)
+};
+
class C2dEffect
{
public:
struct Light {
float dist;
- float outerRange;
+ float range; // of pointlight
float size;
- float innerRange;
- uint8 flash;
+ float shadowRange;
+ uint8 lightType; // LIGHT_
uint8 roadReflection;
uint8 flareType;
uint8 shadowIntensity;
- uint8 flags;
+ uint8 flags; // LIGHTFLAG_
RwTexture *corona;
RwTexture *shadow;
};