lightning

This page needs help! Please submit any missing information via GitHub issues or pull requests.

...

Structure and fields

Field Type Comments
count uint16
near fade distance float
  • Unit: world units
far fade distance float
  • Unit: world units
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?
tint modulation source enum
Option Value Comments
none 0x0
a 0x1
b 0x2
c 0x3
d 0x4
brightness scale source enum?
bitmap

TagDependency: bitmap

markers Block
  • HEK max count: 16
Field Type Comments
attachment marker TagString
Field Type Comments
buffer char[32]

Null-terminated string in 32-char buffer.

flags bitfield
Flag Mask Comments
not connected to next marker 0x1
octaves to next marker int16
random position bounds Vector3D
  • Unit: world units
Field Type Comments
i float
j float
k float
random jitter float
  • Unit: world units
thickness float
  • Unit: world units
tint ColorARGB
Field Type Comments
alpha float
red float
green float
blue float
shader Block
  • HEK max count: 1
  • Processed during compile
Field Type Comments
make it work uint32
  • Cache only
shader flags bitfield
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
Flag Mask Comments
unfiltered 0x1
some more stuff that should be set for some reason uint32
  • Cache only

Acknowledgements

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

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