#[non_exhaustive]pub struct EffectsFrame {
pub lighting: LightingSettings,
pub clip_objects: Vec<ClipObject>,
pub cap_fill_enabled: bool,
pub post_process: PostProcessSettings,
pub compute_filter_items: Vec<ComputeFilterItem>,
pub environment: Option<EnvironmentMap>,
pub ground_plane: GroundPlane,
}Expand description
Global rendering effects and modifiers for one frame.
Groups lighting, clipping, post-processing, compute filtering, and clip volumes : effects that apply globally across the scene rather than to individual objects.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lighting: LightingSettingsPer-frame lighting configuration.
clip_objects: Vec<ClipObject>Active clip objects (planes, boxes, spheres). Max 6 planes + 1 box/sphere. Default: empty (no clipping).
cap_fill_enabled: boolWhether to render filled caps at clip plane cross-sections. Default: true.
post_process: PostProcessSettingsOptional post-processing settings. Default: disabled.
compute_filter_items: Vec<ComputeFilterItem>GPU compute filter items dispatched before the render pass.
environment: Option<EnvironmentMap>Optional environment map for IBL and skybox. Default: None.
ground_plane: GroundPlaneGround plane configuration. Default: mode = None (not drawn, zero overhead).
Implementations§
Source§impl EffectsFrame
impl EffectsFrame
Sourcepub fn split(&self) -> (SceneEffects<'_>, ViewportEffects<'_>)
pub fn split(&self) -> (SceneEffects<'_>, ViewportEffects<'_>)
Decompose into scene-global and per-viewport effect references.
Both halves borrow from self and cannot outlive the EffectsFrame.
The scene half is passed to [ViewportRenderer::prepare_scene]; the
viewport half is passed to [ViewportRenderer::prepare_viewport].
Single-viewport callers can continue using [ViewportRenderer::prepare]
directly without calling split().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EffectsFrame
impl RefUnwindSafe for EffectsFrame
impl Send for EffectsFrame
impl Sync for EffectsFrame
impl Unpin for EffectsFrame
impl UnsafeUnpin for EffectsFrame
impl UnwindSafe for EffectsFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.