pub struct OpacityModel {
pub draw: HashMap<Entity, f32>,
pub groups: Vec<(Entity, f32)>,
}Expand description
How Opacity reaches the paints of one frame: the alpha each entity’s own paints carry, and the
elements whose subtree composites as one layer (ExtractedOpacityGroup).
Fields§
§draw: HashMap<Entity, f32>The alpha to fold into each entity’s own paints, for the entities where it is below one.
groups: Vec<(Entity, f32)>The elements that fade as a group, with their own opacity.
Trait Implementations§
Source§impl Clone for OpacityModel
impl Clone for OpacityModel
Source§fn clone(&self) -> OpacityModel
fn clone(&self) -> OpacityModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpacityModel
impl Debug for OpacityModel
Source§impl Default for OpacityModel
impl Default for OpacityModel
Source§fn default() -> OpacityModel
fn default() -> OpacityModel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpacityModel
impl RefUnwindSafe for OpacityModel
impl Send for OpacityModel
impl Sync for OpacityModel
impl Unpin for OpacityModel
impl UnsafeUnpin for OpacityModel
impl UnwindSafe for OpacityModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromTemplate for T
impl<T> FromTemplate for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
Uses this template and the given
entity context to produce a Template::Output.§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clones this template. See
Clone.