lens_flare

🚧 This article is a stub. You can help expand it by submitting content in pull requests or issues in this wiki's source repo.

...

Structure and fields #

Field Type Comments
falloff angle Angle: f32
cutoff angle Angle: f32
cos falloff angle f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
cos cutoff angle f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
occlusion radius f32 (world units)
occlusion offset direction enum
Option Value Comments
toward viewer 0x0
marker forward 0x1
none 0x2
pad(2)
near fade distance f32 (world units)
far fade distance f32 (world units)
flags bitfield(16)
Flag Mask Comments
sun 0x1
pad(2)
pad(76)
rotation function enum
Option Value Comments
none 0x0
rotation a 0x1
rotation b 0x2
rotation translation 0x3
translation 0x4
pad(2)
rotation function scale Angle: f32
  • Default value: 360.
pad(24)
horizontal scale f32
  • Default value: 1.
vertical scale f32
  • Default value: 1.
pad(28)
reflections Block?
Field Type Comments
flags bitfield(16)
Flag Mask Comments
align rotation with screen center 0x1
radius not scaled by distance 0x2
radius scaled by occlusion factor 0x4
occluded by solid objects 0x8
pad(2)
bitmap index Index: u16
pad(2)
pad(20)
position f32 (along flare axis)
rotation offset f32
pad(4)
radius f32 (world units) (min & max)
radius scaled by enum
Option Value Comments
none 0x0
rotation 0x1
rotation and strafing 0x2
distance from center 0x3
pad(2)
brightness Fraction: f32 (min & max)
  • Maximum: 1
brightness scaled by enum
Option Value Comments
none 0x0
rotation 0x1
rotation and strafing 0x2
distance from center 0x3
pad(2)
tint color
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
color lower bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
color upper bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
more flags bitfield(16)
Flag Mask Comments
interpolate colors in hsv 0x1
more colors 0x2
animation function enum
Option Value Comments
one 0x0
zero 0x1
cosine 0x2
cosine variable period 0x3
diagonal wave 0x4
diagonal wave variable period 0x5
slide 0x6
slide variable period 0x7
noise 0x8
jitter 0x9
wander 0xa
spark 0xb
animation period f32 (world units)
  • Default value: 1.
animation phase f32 (world units)
pad(4)
pad(32)

This information was partially generated using Invader tag definitions.

Acknowledgements

Thanks to the following individuals for their research or contributions to this topic:

  • Kavawuvi (Invader tag definitions)
  • MosesOfEgypt (Tag structure research)