Lighting effects
From DoomWiki.org
Most lighting effects in the Doom engine are set as a sector types, but it is also possible for linedef types to change a sector's lighting.
Contents
- 1 Sector types
- 2 Linedef types
- 2.1 12: Change to brightest adjacent (W1)
- 2.2 13: Change to 255 brightness (W1)
- 2.3 17: Start slow strobe (W1)
- 2.4 35: Change to 35 brightness (W1)
- 2.5 79: Change to 35 brightness (WR)
- 2.6 80: Change to brightest adjacent (WR)
- 2.7 81: Change to 255 brightness (WR)
- 2.8 104: Change to darkest adjacent (W1)
- 2.9 138: Change to 255 brightness (SR)
- 2.10 139: Change to 35 brightness (SR)
- 3 See also
Sector types[edit]
1: Random blink[edit]
The sector's brightness will briefly and randomly drop to the level of the darkest connected sector. If all connected sectors have the same or higher brightness than the blinking sector, the sector's light will not blink.
2: Slow strobe[edit]
The sector's light is the brightness of the darkest connected sector and it will flash at its defined brightness every 35 tics. If all connected sectors have the same or higher brightness than the flashing sector, a brightness of 0 is used for the "flash".
3: Fast strobe[edit]
The same as sector type 2, but it flashes every 15 tics.
4: Fast strobe, 20 damage[edit]
The same as sector type 3, but the sector's floor also causes 20 damage to the player every 32 tics.
8: Glow[edit]
The sector will glow between its brightness and the darkest connected sector's brightness. If all connected sectors have the same or higher brightness than the glowing sector, the sector's light will not glow.
In software rendering engines, the distance fading effect gives the sector's light the appearance of brightening away from the player and then darkening towards them; this effect becomes more pronounced the greater the difference between the brightness levels. Hardware rendering engines may handle this effect differently.
12: Slow strobe, synchronized[edit]
This is the same as sector type 2, but all sectors assigned this type will flash at the same time. This is useful when a level designer wants to have a lighting effect continue into multiple sectors, but the information about connected sectors' brightness still applies to synchronized types.
13: Fast strobe, synchronized[edit]
Like the above, this is the same as sector type 3, but all sectors assigned it will flash at the same time.
17: Fire flicker[edit]
The sector's brightness will change every four tics to a random value (in steps of 16) between the sector's assigned light level and the lowest surrounding light level plus 16.
Linedef types[edit]
This article or section is a stub. Please help the Doom Wiki by adding to it. |
These linedef types directly affect a tagged sector's lighting. Note that while sectors can be given the brightest/darkest lighting from a connected sector, they will not be given that sector's type, so any effects will not be copied. For instance, when using type 12 to copy from a strobing sector, whichever brightness the strobe is at when the line is crossed will be applied to the tagged sector. Likewise the targeted sector will retain any lighting effect set for it after the change.
12: Change to brightest adjacent (W1)[edit]
Sets the tagged sector's brightness to the brightest connected sector when walked over. Despite being labeled "light turn on" in the source, it can also darken the target sector's light if it is already brighter than any connected sector.
13: Change to 255 brightness (W1)[edit]
Sets the tagged sector's brightness to 255 when walked over.
17: Start slow strobe (W1)[edit]
Makes the tagged sector strobe, as if sector type 2 had been set, when walked over.
35: Change to 35 brightness (W1)[edit]
Sets the tagged sector's brightness to 35 when walked over.
79: Change to 35 brightness (WR)[edit]
A repeatable copy of type 35.
80: Change to brightest adjacent (WR)[edit]
A repeatable copy of type 12.
81: Change to 255 brightness (WR)[edit]
A repeatable copy of type 13.
104: Change to darkest adjacent (W1)[edit]
Sets the tagged sector's brightness to the darkest connected sector when walked over. Unlike type 12, this will only work when there are darker connected sectors.
138: Change to 255 brightness (SR)[edit]
A copy of type 13 that is activated by a repeatable switch.
139: Change to 35 brightness (SR)[edit]
A copy of type 35 that is activated by a repeatable switch.