HAT at minima, convert @317ft/nm,convert to metres, add 160m (from memory check design criteria) will give vis .required to see runway end or app lights.Accounts for all the odd vis req for Non prec app.
Otherwise it's is the amazing pilot ability to judge vis of eg 3200m in rain.
It's all in the books!