ah, I see the problem now with the URP. A quick search on the internet didn't yield more than "create a grid and remember the visited data manually". Hopefully not much trouble switching to built-in pipeline - at least fog of war will work as expected.