pub struct MeshParticle {Show 16 fields
pub mesh: Entity,
pub clip: Option<MeshClip>,
pub blend: Blend,
pub orientation: MeshOrientation,
pub size: [Value; 3],
pub size_variance: [f32; 3],
pub uniform: bool,
pub rotation: [Value; 3],
pub spin: [Value; 3],
pub tint: Vec<Term>,
pub scroll: [Value; 2],
pub offset: [Value; 2],
pub atlas: Option<Atlas>,
pub soft: Option<SoftEdge>,
pub distance: Option<DistanceFade>,
pub lit: bool,
}Expand description
A mesh drawn per particle.
Fields§
§mesh: EntityA prototype entity (a core.mesh with its materials).
clip: Option<MeshClip>An animation clip entity to play on it, with its speed and whether it loops.
blend: Blend§orientation: MeshOrientation§size: [Value; 3]Size along the three axes, functions of the age.
size_variance: [f32; 3]§uniform: bool§rotation: [Value; 3]§spin: [Value; 3]§tint: Vec<Term>§scroll: [Value; 2]Texture-space scroll of the mesh’s texture.
offset: [Value; 2]§atlas: Option<Atlas>§soft: Option<SoftEdge>§distance: Option<DistanceFade>§lit: boolTrait Implementations§
Source§impl Clone for MeshParticle
impl Clone for MeshParticle
Source§impl Debug for MeshParticle
impl Debug for MeshParticle
Source§impl PartialEq for MeshParticle
impl PartialEq for MeshParticle
Source§impl Serialize for MeshParticle
impl Serialize for MeshParticle
impl StructuralPartialEq for MeshParticle
Auto Trait Implementations§
impl Forget for MeshParticle
impl Freeze for MeshParticle
impl RefUnwindSafe for MeshParticle
impl Send for MeshParticle
impl Sync for MeshParticle
impl Unpin for MeshParticle
impl UnsafeUnpin for MeshParticle
impl UnwindSafe for MeshParticle
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