by _mental_ » Fri Jan 18, 2019 9:59 am
This happens with other sector light mode as well. Walls become pure black when calculated fake contrast value is equal to sector light level except the sign.
In other words, it happens when sum of a value assigned
here and sector light level is zero.
By default, all horizontal walls of sectors with light level equal to 16 are affected. The initial value of
WallHorizLight is -16.
Probably, there can be other ways to trigger this issue, but this one was obvious.
- Attachments
-
- light_level.wad
- (1.45 KiB) Downloaded 37 times
This happens with other sector light mode as well. Walls become pure black when calculated fake contrast value is equal to sector light level except the sign.
In other words, it happens when sum of a value assigned [url=https://github.com/coelckers/gzdoom/blob/395d613912bde1e3edbf2ec384514711af7c6ebc/src/p_sectors.cpp#L1556]here[/url] and sector light level is zero.
By default, all horizontal walls of sectors with light level equal to 16 are affected. The initial value of [url=https://github.com/coelckers/gzdoom/blob/395d613912bde1e3edbf2ec384514711af7c6ebc/src/p_sectors.cpp#L1552]WallHorizLight[/url] is -16.
Probably, there can be other ways to trigger this issue, but this one was obvious.