fn normalize_t(t: f32) -> f32 { return clamp(t, 0.0, 1.0); }