620dfc6e0d
The lift's threshold read the frame, which the vignette darkens toward the screen's edges, so a jack o'lantern lit up fully in the middle of the screen and only at its eyes and mouth further out. Read it from the world copy instead; the gain still applies to the frame, so the vignette darkens highlights as before. Telling the vignetted world from UI also failed on pixels with a channel at 0 (a pumpkin's stem): each channel's ratio was compared to their mean, and a 0 channel's ratio is 0. Hold the channels to one factor, the ratio of their sums, allowing a step of 8-bit rounding. Part of #1441. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>