-
Notifications
You must be signed in to change notification settings - Fork 69
Light levels
Aaron edited this page Aug 20, 2023
·
2 revisions
NORMAL.LGT
and FOG.LGT
each contain 13 palettes where each palette corresponds to a light level. A texture color and light level index are mixed to produce a new, darker color that points into the game world palette.
Windows are black (palette index 0) on clear day, rgb(136,136,148) during the fog, and rgb(255,164,0) during the night. During twilight (x <- fGameHour*1024 = 256..271
and 753..768
) their values come from a VGA RGB array @4315a
with 16 elements (6 bits per channel, 48 bytes total); the index is (x - 256
) and (768 - x
) correspondingly.
The corresponding water light levels are in a corresponding word array @4313a
.
During the night, all colors on light levels 13 and 14 correspond to color 112.