struct
ParticleField
pub struct ParticleField {
pub count: u32,
pub radius: f32,
pub shape: ParticleShape,
pub color: Color,
pub color2: Color,
pub size: f32,
pub speed: f32,
pub seed: u64,
pub position: Vec3,
}A cloud of glowing points that orbit the field's Y axis.
Fields
Methods
generate
pub fn generate(&self) -> (Vec<f32>, Vec<f32>)Positions (xyz per particle) and attributes (phase, size factor, color mix — each in 0..1). Deterministic for a given seed.