pub struct Trail {Show 28 fields
pub map: Option<Map>,
pub blend: Blend,
pub orientation: TrailOrientation,
pub width: Value,
pub width_scale: Value,
pub segment_interval: f32,
pub segment_life: f32,
pub max_segments: u32,
pub subdivisions: u32,
pub texture_fraction: Value,
pub scroll_u: Value,
pub variance_u: f32,
pub variance_v: Value,
pub attached_uv: bool,
pub dynamic_opacity: bool,
pub fade_start: Value,
pub fade_end: Value,
pub alpha_fade_threshold: Value,
pub alpha_cutoff: Value,
pub atlas: Option<Atlas>,
pub tint: Vec<Term>,
pub fade_out: f32,
pub distortion: Option<TrailDistortion>,
pub lit: Option<Lit>,
pub premultiply_alpha: bool,
pub soft: Option<SoftEdge>,
pub distance: DistanceFade,
pub bloom: Option<[f32; 4]>,
}Expand description
A strip left behind a moving particle.
Fields§
§map: Option<Map>§blend: Blend§orientation: TrailOrientation§width: ValueWidth in metres, a function of the particle’s age, times width_scale, a function of the time it was emitted.
width_scale: Value§segment_interval: f32Seconds between segment starts, how long a segment lives, how many are alive, and how many cuts a completed segment is subdivided into.
segment_life: f32§max_segments: u32§subdivisions: u32§texture_fraction: ValueThe fraction of the texture’s width used per segment (for the whole trail when attached_uv), the speed the texture
slides along (u per second), and the random offset of each segment’s texture (u as a fraction, v a function of the age).
scroll_u: Value§variance_u: f32§variance_v: Value§attached_uv: boolWhether the texture is attached to the strip (sliding with its source) or stays where each segment was made.
dynamic_opacity: boolWhether each segment’s opacity follows the speed of the source when the segment was made.
fade_start: ValueWhere along the trail (a fraction of its length from the start, and from the end) opacity has fully faded in and out, functions of the age: 0 is no fade.
fade_end: Value§alpha_fade_threshold: Value§alpha_cutoff: Value§atlas: Option<Atlas>§tint: Vec<Term>§fade_out: f32Seconds over which the trail fades after its particle ends.
distortion: Option<TrailDistortion>A refraction of what is behind the strip, by a normal map and an intensity (a function of the emitter’s active time).
lit: Option<Lit>§premultiply_alpha: bool§soft: Option<SoftEdge>§distance: DistanceFade§bloom: Option<[f32; 4]>