light

🚧 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
flags bitfield(32)
Flag Mask Comments
dynamic 0x1
no specular 0x2
don't light own object 0x4
supersize in first person 0x8
first person flashlight 0x10
don't fade active camouflage 0x20
radius f32
radius modifer f32 (min & max)
  • Default value: 1,1.
falloff angle Angle: f32
  • Default value: 3.14159274101257.
cutoff angle Angle: f32
  • Default value: 3.14159274101257.
lens flare only radius 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.
unknown two f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
sin cutoff angle f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
pad(8)
interpolation flags bitfield(32)
Flag Mask Comments
blend in hsv 0x1
more colors 0x2
color lower bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
color upper bound
ColorARGB
  • alpha: f32
  • red: f32
  • green: f32
  • blue: f32
pad(12)
pad(2)
texture 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
texture animation period f32 (seconds)
pad(2)
yaw 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
yaw period f32 (seconds)
  • Default value: 1.
pad(2)
roll 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
roll period f32 (seconds)
  • Default value: 1.
pad(2)
pitch 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
pitch period f32 (seconds)
  • Default value: 1.
pad(8)
pad(24)
intensity f32
color
ColorRGB
  • red: f32
  • green: f32
  • blue: f32
pad(16)
duration f32 (seconds)
pad(2)
falloff function enum
Option Value Comments
linear 0x0
early 0x1
very early 0x2
late 0x3
very late 0x4
cosine 0x5
pad(8)
pad(92)

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)