pub struct DissolveComponent
{
    pub amount: f32,
    pub target_amount: f32,
    pub transition_speed: f32,
}

impl DissolveComponent
{
    pub fn new() -> Self
    {
        Self {
            amount: 0.0,
            target_amount: 0.0,
            transition_speed: 3.0,
        }
    }

    pub fn with_speed(transition_speed: f32) -> Self
    {
        Self {
            amount: 0.0,
            target_amount: 0.0,
            transition_speed,
        }
    }
}
