pub struct Group {
pub faces: usize,
pub tier: usize,
pub forced: bool,
}Expand description
One group of the atlas that wants redrawing, and what redrawing it costs.
Fields§
§faces: usizeTiles the group draws: one for a cascade, and
super::tile_span of its light for a light slot.
What r_shadow_faces is spent in, and the reason the budget is a count
of faces rather than of groups: a point light’s cube is
super::POINT_FACES whole geometry passes and a spot’s cone is one.
tier: usizeWhich rung of the ladder this group sits on — 0 is redrawn every frame, and each rung below doubles the period.
A light’s is the quadtree level super::Assignment::level holds, so
super::coverage decides it exactly as it decides the tile’s size. A
cascade’s is its own index: the near cascade fills most of the screen and
is fitted to the eye every frame, and the far ones cover ground a texel
of which is metres across.
forced: boolWhether the map the image holds for this group describes a region that has since moved out from under it, rather than merely being out of date.
The reset the plan asks for, per group. A light that jumped further
than its own radius, or a cascade whose eye moved further than the
cascade’s own sphere reaches, holds texels about somewhere else — which
is worse than a shadow that lags, and is what makes this bypass the
period. It does not bypass Cadence::faces: a frame that redrew
past its budget would have no budget. Forced groups are offered it
first, and one that still does not fit holds another frame.