proper idiom is 0.5f (no casting) but this is fine.