pub struct RenderPolicy {
pub mode: RenderMode,
pub material: String,
pub lit: bool,
pub cast_shadows: bool,
pub receive_shadows: bool,
pub soft_depth_fade: bool,
pub velocity_alignment: bool,
pub color_over_life: Option<Curve4>,
pub size_over_life: Option<Curve2>,
pub alpha_over_life: Option<Curve1>,
}Expand description
Render policy — visual presentation parameters.
Fields§
§mode: RenderMode§material: String§lit: bool§cast_shadows: bool§receive_shadows: bool§soft_depth_fade: bool§velocity_alignment: bool§color_over_life: Option<Curve4>§size_over_life: Option<Curve2>§alpha_over_life: Option<Curve1>Trait Implementations§
Source§impl Clone for RenderPolicy
impl Clone for RenderPolicy
Source§fn clone(&self) -> RenderPolicy
fn clone(&self) -> RenderPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderPolicy
impl Debug for RenderPolicy
Source§impl Default for RenderPolicy
impl Default for RenderPolicy
Source§impl<'de> Deserialize<'de> for RenderPolicy
impl<'de> Deserialize<'de> for RenderPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RenderPolicy
impl RefUnwindSafe for RenderPolicy
impl Send for RenderPolicy
impl Sync for RenderPolicy
impl Unpin for RenderPolicy
impl UnsafeUnpin for RenderPolicy
impl UnwindSafe for RenderPolicy
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
Mutably borrows from an owned value. Read more