Taos API Reference
    Preparing search index...

    Type Alias ParticleAttribute

    ParticleAttribute:
        | "position"
        | "velocity"
        | "color"
        | "rgb"
        | "alpha"
        | "size"
        | "rotation"
        | "age"
        | "max_age"
        | "normalized_age"

    Particle attributes that expressions can read from or assign to. Map to fields on the Particle struct (see particle_builder.ts header):

    • position / velocity: vec3
    • color: vec4; rgb: vec3; alpha: f32 (writing rgb preserves alpha)
    • size / rotation: f32
    • age / max_age: f32 (lifetime in seconds; age is current life)
    • normalized_age: f32 in [0,1] (computed: age / max(max_age, 1e-6)). Read-only — set age or max_age instead.