pub struct ViewDesc {
pub effects: RenderEffects,
pub background: ViewBackground,
pub lighting: ViewLighting,
}Expand description
What ForwardRenderer::create_view builds.
Fields§
§effects: RenderEffectsThe effects this view may draw — intersected, every frame, with what the
frame resolved (see ForwardRenderer::resolved_effects), so a view
can ask for less than the frame draws and never for more.
RenderEffects::SHADOWS is not a view’s to take away and is ignored
here: the atlas is drawn once for the frame, and every view samples it
whenever the frame drew it. A ViewLighting::Fixed view also never
draws ViewLighting::SCENE_EFFECTS, whatever this asks for.
background: ViewBackgroundWhat the view’s picture holds where no geometry is — see
ViewBackground.
lighting: ViewLightingWhat lights the view’s surfaces — see ViewLighting.
Implementations§
Source§impl ViewDesc
impl ViewDesc
Sourcepub const fn transparent() -> Self
pub const fn transparent() -> Self
A ViewBackground::Transparent view with every effect the frame draws
except the ones such a view cannot take, and auto-exposure.
The two antialiasing tiers are what
ForwardRenderer::create_view refuses on a transparent view.
RenderEffects::AUTO_EXPOSURE it would accept, and it is left out
because the meter reads the whole target: the transparent background is
metered as black, so a model filling a quarter of the picture would be
exposed differently from the same model filling half of it. The view
takes the caller’s exposure instead — see
ForwardRenderer::set_exposure.