lightning

🚧 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
pad(2)
count u16
pad(16)
near fade distance f32 (world units)
far fade distance f32 (world units)
pad(16)
jitter scale source enum
Option Value Comments
none 0x0
a out 0x1
b out 0x2
c out 0x3
d out 0x4
thickness scale source enum
Option Value Comments
none 0x0
a out 0x1
b out 0x2
c out 0x3
d out 0x4
tint modulation source enum
Option Value Comments
none 0x0
a 0x1
b 0x2
c 0x3
d 0x4
brightness scale source enum
Option Value Comments
none 0x0
a out 0x1
b out 0x2
c out 0x3
d out 0x4
pad(84)
markers Block?
Field Type Comments
attachment marker char[32]
flags bitfield(16)
Flag Mask Comments
not connected to next marker 0x1
pad(2)
octaves to next marker i16
pad(2)
pad(76)
random position bounds
Vector3D (world units)
  • i: f32
  • j: f32
  • k: f32
random jitter f32 (world units)
thickness f32 (world units)
tint
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
pad(76)
shader Block?
Field Type Comments
pad(36)
make it work u32 (little endian?)
  • Only set when the tag is compiled into a map cache.
shader flags bitfield(16)
Flag Mask Comments
sort bias 0x1
nonlinear tint 0x2
don't overdraw fp weapon 0x4
framebuffer blend function enum
Option Value Comments
alpha blend 0x0
multiply 0x1
double multiply 0x2
add 0x3
subtract 0x4
component min 0x5
component max 0x6
alpha multiply add 0x7
framebuffer fade mode enum
Option Value Comments
none 0x0
fade when perpendicular 0x1
fade when parallel 0x2
map flags bitfield(16)
Flag Mask Comments
unfiltered 0x1
pad(28)
pad(12)
some more stuff that should be set for some reason u32 (little endian?)
  • Only set when the tag is compiled into a map cache.
pad(2)
pad(2)
pad(56)
pad(28)
pad(88)

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)